Spring Boot + Elastic Beanstalk .ebextensions in JAR

前端 未结 5 1912
遇见更好的自我
遇见更好的自我 2021-02-13 15:44

I have a very standard Spring Boot application (with a application.properties properties file located in standard /src/main/resources folder) which I\'

5条回答
  •  一整个雨季
    2021-02-13 15:59

    Here is a pom snippet that'll make it work for a JAR:

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
        
            
                src/main/resources/ebextensions
                .ebextensions
                true
            
            
            
                ${basedir}/src/main/resources
                true
                
                    **/application*.yml
                    **/application*.properties
                
            
            
                ${basedir}/src/main/resources
                
                    **/application*.yml
                    **/application*.properties
                
            
        
    
    

    It just works in the same way as moving .ebextensions to root in .war file

    Actually I uploaded the sample to this repo. Just do a mvn package

提交回复
热议问题