问题描述:
项目中启动Eureka后,Eclipse输出警告:
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/He-man/.m2/repository/org/springframework/spring-core/4.3.8.RELEASE/spring-core-4.3.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
本地 http://127.0.0.1:8761 页面显示错误404
原因分析:
JDK版本高,工程创建是引用的 jdk1.8
解决方案:
所以安装jdk1.8并重新配置环境变量和 Eclipse 中的 jdk 路径,重启系统
结果:
运行无警告:
后台页面正常打开:
搞定~