java.lang.ClassCastException: com.jfinal.plugin.activerecord.ActiveRecordPlugin cannot be cast to com.jfinal.plugin.IPlugin
at com.jfinal.core.Config.startPlugins(Config.java:118)
at com.jfinal.core.Config.configPluginWithOrder(Config.java:71)
at com.jfinal.core.Config.configJFinal(Config.java:59)
at com.jfinal.core.JFinal.init(JFinal.java:61)
ActiveRecordPlugin () { Set<Class<? Model<?>>> modelMappingSet = scanModelPackages(); (== ) { = DataSourceFactory.(, , , ); (!= ) { .postHandle(, modelMappingSet); } } ActiveRecordPlugin arp = ActiveRecordPlugin(, ); arp.setShowSql(); initModelMappings(arp, modelMappingSet); arp; }
我分析了下包依赖,没有多个版本的jfinal,会不会和类加载机制有关系?
项目:JFinal
此外,还要注意一下是从哪个版本升上来的,稍微浏览一下相关升级需要注意的地方:
https://jfinal.com/doc/14-1