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

来源:4-11 创建线下会议申请(后端)(二)

weixin_慕工程6456464

2022-03-12

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

写回答

1回答

神思者

2022-03-12

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

0
2
神思者
回复
weixin_慕工程6456464
YML文件里面${wx.app-id}值注入信息没写
2022-03-13
共2条回复

SpringBoot+Vue3 项目实战,打造企业级在线办公系统

以业务为基础,贯穿前后端技术栈,获得企业级项目开发经验

2231 学习 · 1261 问题

查看课程