jeefast启动报错class jdk.internal.loader.ClassLoaders$AppClassLoader

1.报错信息:

Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base 

2.解决方法:

在依赖中将热部署的依赖去掉
<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<optional>true</optional>
		</dependency>

3.升级springboot版本

上一篇:Gradle 6 Junit 5 测试错误


下一篇:[CVE-2020-10199/10204] Nexus Repository Manager 3 RCE