강의

멘토링

로드맵

Inflearn Community Q&A

jungjaekimxyz0597's profile image
jungjaekimxyz0597

asked

Spring Boot Concepts and Utilization

Logging Part 1: Configuring the Spring Boot Default Logger

application.yml 파일 분리

Written on

·

351

0

- application.yml 을 분리하고,
spring.profiles.include를 해서 AppicationRunner 클래스를 만들어서 테스트를 해봤는데요,
- 테스트할때, Properties 클래스 생성해서(@ConfigurationProperties) 했습니다.)
하나에 모두 다 있을때는 값이 출력이 되었는데,
분리하고 나니 값이 null로 출력됩니다. 에러는 없어요.
 
무슨 문제일까요?
application.ymlspring-bootjavaspring

Answer 1

0

파일 이름이 _로 되어 있어서 그랬네요

해결되었습니다.

jungjaekimxyz0597's profile image
jungjaekimxyz0597

asked

Ask a question