Skip to content

nurdun/one-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Active Spring profiles by below several methods

1.vm options -Dspring.profiles.active=dev

2.application.properties spring.profiles.active=dev

3.mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=dev" or mvn spring-boot:run -Dspring.profiles.active=dev

  1. pom.xml config

<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<profiles>
<profile>dev</profile>
</profiles>
</configuration>
</plugin>
...
</plugins>

then mvn spring-boot:run

About

Springboot jdbc&mybatis&spring data jpa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published