Skip to content

aimhigh-learning/spring-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-profile

Profile setting for spring boot

How to run

Build with maven

  1. Go to target folder and find the jar
  2. For dev mode: java -jar spring-profile-0.0.1-SNAPSHOT.jar
  3. For prod mode: java -jar -Dspring.profiles.active=prod spring-profile-0.0.1-SNAPSHOT.jar

After that verify with

2022-01-20 22:03:20.562 INFO 10188 --- [ main] o.r.c.profile.SpringProfileApplication : The following profiles are active: prod 2022-01-20 22:03:23.064 INFO 10188 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 1005 (http)

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

About

Profile setting for spring boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages