SpringBoot之class is not visible from class loader

  • 方案一,排查掉spring-boot-devtools模块模块的maven引入可以解决,这时候所有类都是使用APPClassloader加载。

  • 方案二,可以引入spring-boot-devtools模块,但是禁用禁用reStart功能

  • public static void main( String[] args )
       {
           System.setProperty("spring.devtools.restart.enabled", "false");
     
           SpringApplication.run(Application.class, args);
       }
     

发布了58 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/zh_chong/article/details/103370185