已解决
Unsatisfied dependency expressed through bean property ‘sqlSessionTemplate‘;
来自网友在路上 177877提问 提问时间:2023-10-28 02:54:15阅读次数: 77
最佳答案 问答题库778位专家为你答疑解惑
代码没有问题,但是启动运行报错
2023-10-25 16:59:38.165 INFO 228964 --- [ main] c.h.h.HailiaowenanApplication : Starting HailiaowenanApplication on ganluhua with PID 228964 (D:\ganluhua\code\java\hailiao-java\target\classes started by 80913 in D:\ganluhua\code\java\hailiao-java)
2023-10-25 16:59:38.166 INFO 228964 --- [ main] c.h.h.HailiaowenanApplication : No active profile set, falling back to default profiles: default
2023-10-25 16:59:38.210 INFO 228964 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3f91b517: startup date [Wed Oct 25 16:59:38 CST 2023]; root of context hierarchy
2023-10-25 16:59:39.015 INFO 228964 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2023-10-25 16:59:39.207 WARN 228964 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wxOrderMapper' defined in file [D:\ganluhua\code\java\hailiao-java\target\classes\com\hi\hailiaowenan\wxpay\mapper\WxOrderMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration]: No default constructor found; nested exception instantiate java.lang.NoSuchMethodException: org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.<init>()
原因,jdk没有在系统配置中配置正确
配置指引
VScode 运行Java - 简书
按住win+R,输入cmd
输入java,应为如下显示:
输入javac,应为如下显示:
查看全文
99%的人还看了
相似问题
- conda创建pytorch环境报错
- Python通过selenium调用IE11浏览器报错解决方法
- kafka本地安装报错
- 【BUG】第一次创建vue3+vite项目启动报错Error: Cannot find module ‘worker_threads‘
- git 构建报错
- Docker build报错总结,版本过新大避雷!
- Mongodb3.4升级高版本mongoTemplate.executeCommand报错The cursor option is required
- duplicate复制数据库单个数据文件复制失败报错rman-03009 ora-03113
- 安装第三方包报错 error: Microsoft Visual C++ 14.0 or greater is required——解决办法
- 邮件|gitpushgithub报错|Lombok注解
猜你感兴趣
版权申明
本文"Unsatisfied dependency expressed through bean property ‘sqlSessionTemplate‘;":http://eshow365.cn/6-26495-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!