Last active
October 12, 2018 16:27
-
-
Save jayden-lee/ad851d6fdc99e66236e97a0833a0f56f to your computer and use it in GitHub Desktop.
Spring 프로파일 구성
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
profiles: | |
active: production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.profiles.active=production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging: | |
level: | |
root: INFO | |
--- | |
spring: | |
profiles: development | |
logging: | |
level: | |
root: DEBUG | |
--- | |
spring | |
profiles: production | |
logging: | |
path: /tmp/ | |
file: Log.log | |
level: | |
root: WARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Profile("production") | |
@Configuration | |
public class MyConfiguration { | |
// TODO | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment