![](https://img-blog.csdnimg.cn/20210110195605560.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring Boot
文章平均质量分 55
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
Adam`南帝·梁
世上哪有什么岁月静好,不过是有人替你负重前行
展开
-
Spring项目启动时Error creating bean with name ‘xxxxxx‘: Bean with name ‘xxxxxx‘ has been injected into ot
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'xxxxxx': Bean with name 'xxxxxx' has been injected into other beans [xxxxxx] in its raw version as part of a circular reference, but has eventuall原创 2022-08-03 14:16:40 · 1205 阅读 · 0 评论 -
SpringBoot自动装配原理
过程 @SpringBootApplication——>@EnableAutoConfiguration——>@Import提供,其导入的AutoConfigurationImportSelector的selectImports()方法 SpringFactoriesLoader.loadFactoryNames()扫描所有具有META-INF/spring.factories的jar包下面key是EnableAutoConfiguration全名的,所有自动配置类。 看看SpringB原创 2022-05-09 16:58:38 · 250 阅读 · 1 评论 -
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
前言 从网上找了个SpringBoot整合各种东西的项目,在调试过程中出现了此问题。 问题 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception 排查原因 controller层没有加@ResponseBody Service层实现类未添加注解@Autowired @RestController使用成了@Controller 解决方案 项目中service层注解未添加,添加原创 2021-01-16 18:58:35 · 3902 阅读 · 0 评论