![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
WXC^_^
这个作者很懒,什么都没留下…
展开
-
equired request parameter ‘params‘ for method parameter type String is not present
spring报错原创 2022-07-14 15:08:52 · 1315 阅读 · 0 评论 -
Exception encountered during context initialization
spring报错原创 2022-07-14 15:05:00 · 131 阅读 · 0 评论 -
springboot搭建时maven加载不成功
1、错误信息Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2022-01-02 21:45:37.900 ERROR 35068 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPL原创 2022-01-02 22:27:48 · 1312 阅读 · 0 评论 -
抛出Error creating bean with name ‘AdmainController‘:
当报错:"Error creating bean with name ‘AdmainController‘:…"时一定是xxxmapper.xml中出错,但报AdmainController不一定是AdmainMapper中出错,所以要把每个xxxmapper.xml检查一遍。发现问题所在:由于返回值不是自定义的,所以不能用resultMap解决办法:改为resultType...原创 2020-12-15 15:15:15 · 243 阅读 · 0 评论 -
mybatis抛出Error creating bean with name ‘xxxController‘:
找了一天的bug,以下时mybatis报错内容:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService';通过检查以下问题没有错误:检查xml的namespace是否和mapper文件的名称一一对应检查方法名称是原创 2020-11-29 18:09:59 · 908 阅读 · 0 评论 -
报错Field Mapper in xxx.xxxServiceImpl required a bean of type ‘dao.xxxMapper‘ that could not be found
报错Field Mapper in xxx.xxxServiceImpl required a bean of type ‘dao.xxxMapper’ that could not be found先说两个注释的区别:@Mapper不需要配置扫描地址,通过xml里面的namespace里面的接口地址,生成了Bean后注入到Service层中。@Repository需要在Spring中配置扫描地址,然后生成Dao层的Bean才能被注入到Service层中。方法一:@Repository改为@Ma.原创 2020-11-29 00:33:54 · 1209 阅读 · 2 评论