resources in a Spring Boot application are missing from jar file when using Spring Boot Maven Plugin

前端 未结 3 1483
醉话见心
醉话见心 2020-12-28 17:35

I am using Spring-Boot v1.3.0.M5 with Maven v3.3.3. I used to be able to run my Spring Boot (boot) application from the console with this command.

mvn clean pa

3条回答
  •  鱼传尺愫
    2020-12-28 18:20

    As described in the documentation mvn spring-boot:run adds src/main/resources in front of your classpath to support hot reload by default. You can turn this off easily

    
      ...
      
        ...
        
          org.springframework.boot
          spring-boot-maven-plugin
          1.2.7.RELEASE
          
            false
          
        
        ...
      
      ...
    
    

提交回复
热议问题