1.2K Star 6.2K Fork 2.7K

闲.大赋(李家智) / springboot-plus

 / 详情

子系统生成的cmsBlogDao找不到,启动报错(编译成功)

待办的
创建于  
2023-07-06 23:15

APPLICATION FAILED TO START


Description:

Field blogDao in com.wlzc.rpamanage.service.CmsBlogService required a bean of type 'com.wlzc.rpamanage.dao.CmsBlogDao' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.wlzc.rpamanage.dao.CmsBlogDao' in your configuration.

评论 (3)

liangRoy 创建了任务

cmsBlogDao 是在哪里呢,子系统里应该能找到啊

cmsBlogDao在子系统,cmsBlogDao在MainApplication启动类同目录下的dao包里。
我在子系统的application.properties里配置beetlsql.coreSqlManager.basePackage加入cmsBlogDao包名就解决了。
这样解决可以的话,以后有新的dao包都要往里加吗?感觉麻烦,不知道我这样解决是不是正确方法?

输入图片说明
他说的应该是这种报错 不影响系统正常运行

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
29 xiandafu 1678706040
Java
1
https://gitee.com/xiandafu/springboot-plus.git
git@gitee.com:xiandafu/springboot-plus.git
xiandafu
springboot-plus
springboot-plus

搜索帮助