问题:启动Application.java允许Eclipse中的springboot项目,出现以下情况

[Springboot]class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader

 

 解决方法:将热部署的依赖去掉(在pom.xml中)

<!-- 热部署 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional> 
        </dependency>        

 

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-07-12
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-05-26
相关资源
相似解决方案