Test Environment Configuration sub idea local line

In the new resources application.properties 

In the resources of multiple separate new environment file

#test environment

applicaion-test.properties

# Development environment

application-dev.properties

#Production Environment

application-prod.properties

 

Then application.properties disposed inside spring.profiles.active = dev, showing the configuration development environment, which then reads the project, such as

@Value ( "HTTP_URL $ {}") 
Private String HTTP_URL;

read is arranged inside application-dev.properties

Guess you like

Origin www.cnblogs.com/zhian/p/11428475.html