请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

工作流项目启动错误,求老师解答

2022/03/12 11:26:35 INFO No SessionScavenger set, using defaults
2022/03/12 11:26:35 INFO node0 Scavenging every 600000ms
2022/03/12 11:26:35 INFO Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@17216605{application,/emos-api,[file:///C:/Users/yxy/AppData/Local/Temp/jetty-docbase.8090.15652200411118811452/, jar:file:/E:/BJPOWERNODE/maven_repository/org/webjars/swagger-ui/3.38.0/swagger-ui-3.38.0.jar!/META-INF/resources],AVAILABLE}
2022/03/12 11:26:35 INFO Started @3821ms
Logging initialized using ‘class org.apache.ibatis.logging.stdout.StdOutImpl’ adapter.
2022/03/12 11:26:35 INFO Init DruidDataSource
2022/03/12 11:26:35 INFO {dataSource-1} inited
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbAmectDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbAmectTypeDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbDeptDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbLeaveDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbMeetingDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbMeetingRoomDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbPermissionDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbReimDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbRoleDao.xml]'
Parsed mapper file: 'file [E:\BJPOWERNODE\resource\xiangmu\chushihuaxiangm\emos-api\target\classes\mapper\TbUserDao.xml]'
2022/03/12 11:26:35 WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userController’: Unsatisfied dependency expressed through field ‘userService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userServiceImpl’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘wx.app-id’ in value "${wx.app-id}"
2022/03/12 11:26:35 INFO {dataSource-1} closed
2022/03/12 11:26:35 INFO node0 Stopped scavenging
2022/03/12 11:26:35 INFO Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@17216605{application,/emos-api,[file:///C:/Users/yxy/AppData/Local/Temp/jetty-docbase.8090.15652200411118811452/, jar:file:/E:/BJPOWERNODE/maven_repository/org/webjars/swagger-ui/3.38.0/swagger-ui-3.38.0.jar!/META-INF/resources],STOPPED}
2022/03/12 11:26:35 INFO

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2022/03/12 11:26:35 ERROR Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userController’: Unsatisfied dependency expressed through field ‘userService’; nested exception is

正在回答 回答被采纳积分+3

1回答

神思者 2022-03-12 11:40:50

仔细检查你的XML文件和DAO对应的关系,还有在YML文件中都配置对了没有,好多东西都要重新排查一遍

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号