Configure active profile in SpringBoot via Maven

前端 未结 7 1578
执笔经年
执笔经年 2020-11-29 20:13

I\'m trying to set an active profile in Spring Boot application using Maven 3.
In my pom.xml I set default active profile and property spring.pr

7条回答
  •  眼角桃花
    2020-11-29 20:58

    You should use the Spring Boot Maven Plugin:

      
      ...
      
        ...
        
          ...
          
            org.springframework.boot
            spring-boot-maven-plugin
            1.5.1.RELEASE
            
              
                foo
                bar
              
            
            ...
          
          ...
        
        ...
      
      ...
    
    

提交回复
热议问题