- 博客(6)
- 收藏
- 关注
原创 WARN o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger - [LoadBalancerCa
项目启动报标题警告,通过添加依赖: 得到解决:
2022-06-24 09:21:11 547 1
原创 Disconnected from the target VM, address: ‘127.0.0.1:61465‘, transport: ‘socket‘
debug启动报这个错误,一直以为网上那些原因引起的,例如端口占用,类同名等等。其实只要仔细往上找找就会发现:原来是注册不上去,通过百度,在pom文件中增加:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency> 重新启动,解决了。...
2022-06-23 22:32:31 1371 1
原创 import注解原理分析
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); UserService userService = (UserService) applicationContext.getBean("com.zhouyu.service.UserService"); userService.test();为什么bean的名字..
2022-04-11 11:44:16 199
原创 Class path contains multiple SLF4J bindings
项目启动的时候报错:Connected to the target VM, address: '127.0.0.1:60585', transport: 'socket'SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/repository/org/slf4j/slf4j-simple/1.7.26/slf4j-simple-1.7.26.jar!/org/slf4j/i
2020-08-02 11:05:47 528
原创 @Conditional条件装配原理
@Conditional条件装配是spring4引入的新特性,与@profile类似(偏向于静态激活和配置),而@Conditional关注与运行时的动态选择。API如下:@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interfa...
2020-03-08 08:38:02 276
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人