Home > Back-end >  Active in doubts about Java
Active in doubts about Java

Time:01-26

Application. The properties of the spring. Profiles. The active=dev, startup - Dspring. Profiles. The active="prod", if I use the properties object in the code for the application. The properties of the active value is how much? If the access or dev, under the condition of not using spring, how do I know that - Dspring. Profiles. The value of the active="prod"
Because hand temporarily not computers, and very want to know the answer to this question, so request help

CodePudding user response:

The String value=https://bbs.csdn.net/topics/System.getProperty (" spring. Profile. The active ");
  • Related