![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
qq_36283674
这个作者很懒,什么都没留下…
展开
-
求问大佬为什么@Resource根据bean name可以将Integer对象注入给String属性
竟然不报错,成功打印1求问大佬们为什么@Resource根据bean name可以将Integer对象注入给String属性?原创 2020-09-07 15:17:50 · 207 阅读 · 1 评论 -
springboot断点调试
首先在springboot的pom.xml中的插件中增加一个用于调试的插件<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-...转载 2020-02-23 13:45:05 · 3556 阅读 · 0 评论 -
Oauth2授权
Oauth2授权转载 2020-02-20 14:07:06 · 160 阅读 · 0 评论 -
spring构造器注入
Starting with Spring 4.3, if a class, which is configured as a Spring bean, has only one constructor, the Autowired annotation can be omitted and Spring will use that constructor and inject all necess...原创 2020-02-20 09:37:27 · 207 阅读 · 0 评论 -
同一个微服务用不同yml配置文件启动问题
加入同一个微服务有两个配置文件,application.yml和application-eureka.yml,如果微服务以application.yml文件启动,则只加载application.yml中的属性,如果微服务以application-eureka.yml启动,则两个配置文件的属性都会加载,遇到相同属性时,后者覆盖前者。...原创 2020-02-19 20:50:05 · 1311 阅读 · 0 评论 -
springcloud启动注意事项
1.相应服务的@Enabe…注解有没有开启。2.yml配置文件是否填写正确。原创 2020-02-19 13:54:15 · 194 阅读 · 0 评论 -
解决:Error creating bean with name 'elasticsearchClient', AvailableProcessors is already set to [4]
第一:先看你的pom文件是否用了redis <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </depen...转载 2020-01-20 20:14:46 · 711 阅读 · 0 评论 -
springboot禁用security
继承WebSecurityConfigurerAdapter,重写configure(HttpSecurity)方法原创 2020-01-01 21:23:39 · 1384 阅读 · 0 评论 -
springboot redis配置应该在spring下面
原创 2020-01-01 17:24:15 · 204 阅读 · 0 评论 -
第一个springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde
https://blog.csdn.net/coyotess/article/details/80637837转载 2019-12-14 18:21:07 · 170 阅读 · 0 评论 -
Maven: Failed to read artifact descriptor
https://blog.csdn.net/JokerLives/article/details/88375473转载 2019-12-14 15:01:22 · 152 阅读 · 0 评论