Skip to content

josephjustn/spring-profiles-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Profiles Example

Example of using Spring Profiles with @Component annotated classes and configuration files, specifically application.yml

Info

Beans:

ProductionMrBean
RowanAtkinson

Configuration:

Configuration File
GIF Banner

To Run

Enables ProductionMrBean bean

Runs on port 7070.

mvn spring-boot:run -"Dspring.profiles.active=prod"

Enables RowanAtkinson bean

Runs on port 6969.

mvn spring-boot:run -"Dspring.profiles.active=dev"

About

example of spring profiles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages