您当前的位置: 首页 >  ui

Spring Boot org.springframework.beans.factory.BeanNotOfRequiredTypeException

发布时间:2019-01-10 17:12:15 ,浏览量:0

遇到这个问题,有几种可能:

1、项目打包的时候 mapping.xml 没有打包进去

2、项目打包的时候,配置文件没有打包进去

检查:

看看项目的“WEB-INF/classes”目录下,有没有配置文件。

完整目录示例:E:\Deploy\apache-tomcat\webapps\ROOT\WEB-INF\classes

3、启用事务处理,但没有做AOP相关配置

参考:

Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching.

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    105695博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.2522s