开发者社区> 问答> 正文

jfinal集成spring 出现问题求解?报错

集成spring 的时候报错:java.lang.NoSuchMethodError: org.springframework.core.convert.converter.ConverterRegistry.addConverter


config里面的的代码:new SpringPlugin("/WEB-INF/classes/applicationContext.xml"))和new SpringPlugin(new SpringPlugin(PathKit.getWebRootPath() + "/WEB-INF/classes/applicationContext.xml"))),我觉得是spring 的jar出现冲突,可是引入的jar也是jfinal-lib里面的spring jar,求解 @JFinal

展开
收起
爱吃鱼的程序员 2020-06-22 19:35:11 394 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    将applicationContext.xml放入WEB-INF目录,然后用下面的代码初始化:

    SpringPluginsp=newSpringPlugin();me.add(sp);

    JFinal会自动去找applicationContext.xml

    问题已经解决,之前从未碰到过。。目前搁浅了,因为我换了个ide就没事了。。目前不清楚是什么问题。谢谢
    2020-06-22 19:35:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里邮箱—安全高效集成 立即下载
集成智能接入网关APP:优化企业级移动办公网络 立即下载
云效助力企业集成安全到DevOps中 立即下载