[Spring boot] Application properties and configurations

We can use different application properties

[Spring boot] Application properties and configurations

application.properties:

server.port=9090

 

application-prod.properties:

server.port=80

 

application-test.properties:

server.port=9090

 

We can setup different properties for different env, more about configration can be found here

 

Run:

-Dspring.profiles.active=test

WIll run test env:

[Spring boot] Application properties and configurations

 

[Spring boot] Application properties and configurations

上一篇:整理用js实现tab标签页


下一篇:EXTJS4.2——1.Hellow World