728x90
사전에 spring-boot-devtools 라이브러리가 있어야함.
1. application-[환경].properties 파일 생성
- application-dev.properties
- application-prod.properties
- application.properties
[application.properties]
logging.level.org.springframework=debug
spring.profiles.active=dev
[application-dev.properties]
logging.level.org.springframework=debug
[application-prod.properties]
logging.level.org.springframework=info
application.properties의
spring.profiles.active가 [환경] 에 맞춰서 override 해준다
ex) applcation-[환경].properties
'서버' 카테고리의 다른 글
Spring boot3 - maven으로 빌드, 내장 tomcat은 어디있는지 확인하기 (0) | 2024.11.26 |
---|---|
Spring boot3 - properties에 있는 환경변수를 bean으로 등록해 사용해보기 (0) | 2024.11.25 |
curl로 get, post, put, delete 보내기 (0) | 2024.11.24 |
mac h2 database 설치 (1) | 2024.11.22 |
Springboot -소셜 로그인 연동 (0) | 2024.11.20 |