Spring 5.0.5 在 jdk9 环境下启动警告
2018-04-10 17:32
162 查看
现象
启动时报警告. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.1.RELEASE) 2018-04-10 17:30:34.768 INFO 28600 --- [ restartedMain] com.ghca.unicom.tianjin.AppStarter : 2018-04-10 17:30:34.771 INFO 28600 --- [ restartedMain] com.ghca.unicom.tianjin.AppStarter : No active profile set, falling back to default profiles: default 2018-04-10 17:30:34.939 INFO 28600 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@24a23b0d: startup date [Tue Apr 10 17:30:34 CST 2018]; root of context hierarchy WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/home/xxx/.m2/repository/org/springframework/spring-core/5.0.5.RELEASE/spring-core-5.0.5.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
原因:
见 Spring Framework/SPR-15859: MethodHandles.Lookup.defineClass for CGLIB class definition purposes相关文章推荐
- spring环境tomcat启动报错NoSuchMethodError: org.springframework.util.Assert.noNullElements([Ljava/lan...
- 《Spring技术内幕》学习笔记10——Web环境中Spring的启动过程
- spring boot 指定启动环境
- 《Spring技术内幕》学习笔记10——Web环境中Spring的启动过程
- 使用spring的@Scheduled注解执行定时任务,启动项目不输出警告
- spring 配置junit 启动时出现 ClassNotFound警告
- 《Spring技术内幕》学习笔记10——Web环境中Spring的启动过程
- Myeclipse环境Spring版本升级后Web Server启动失败
- maven 环境下由spring管理的shiro和ehcache项目启动时异常
- Web环境中Spring的启动过程
- Spring boot源码分析-AnnotationConfigApplicationContext非web环境下的启动容器(2)
- spring.profiles.active 针对多种启动环境的spring配置
- Linux环境Tomcat 启动警告This is very likely to create a memory leak.
- spring多环境指定特定环境启动
- Spring IoC容器在Web环境中的启动源码阅读
- Web环境中Spring的启动过程
- 《Spring技术内幕》学习笔记10——Web环境中Spring的启动过程
- Mybatis在Spring环境下的启动顺序
- jdk9环境中gradle安装出现的警告。
- Spring web环境容器启动流程