【问题标题】:FileNotFoundException: class path resource [FileChangeListener.class] cannot be opened because it does not exist [duplicate]FileNotFoundException:类路径资源 [FileChangeListener.class] 无法打开,因为它不存在 [重复]
【发布时间】:2020-06-02 21:26:39
【问题描述】:

spring devtools 不包含在 fat 可执行 jar 中,如果我们尝试使用“java -jar”命令运行 spring boot jar,则会出现此错误。

【问题讨论】:

    标签: spring spring-boot


    【解决方案1】:

    在 Spring Boot 项目中默认排除 Devtools。所以我们需要防止这种情况。 以下页面包含详细答案:Spring DevTools not included in the fat jar packaged with spring-boot-maven-plugin

    【讨论】:

      猜你喜欢
      • 2020-10-21
      • 2018-09-22
      • 1970-01-01
      • 2015-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-02
      • 2017-02-19
      相关资源
      最近更新 更多