Skip to content
nurdunPublic

About

Springboot jdbc&mybatis&spring data jpa

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages