主要错误信息:java.lang.IllegalStateException: Failed to load ApplicationContextCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]...这是什么情况造成的呢,附上主要代码图,请各位帮忙指点下,感激不尽
2 回答
慕的地6264312
TA贡献1817条经验 获得超6个赞
requestMappingHandlerAdapter这个类没有注入到spring里面,检查这个类是不是添加上了spring注解,或则在xml文件声明了。还有可能就是requestMappingHandlerAdapter这类里面注入里其他类失败了。导致这个类注入失败。
- 2 回答
- 0 关注
- 1336 浏览
添加回答
举报
0/150
提交
取消