properties

SpringBoot의 application.properties, application.yml 다양한 특성을 지정할 수 있습니다 . 아래 링크는 Spring Boot의 config설정에 대한 부록으로 유용한 정보들이 많이 있습니다. class또는 bean에서 추가로 설정하지 않아도 간단하게 사용할 수 있는 것들이 많이 있기 때문에 한번씩 사용해보면 좋을 것 같습니다. https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/context/annotation/PropertySource.html PropertySource (Spring Framework 5.1.7.RELEASE API) Annotation providing a con..
SpringBoot에서 @PropertySource 어노테이션을 이용하여 application.properties, config.properties와 같은 설정 파일들의 지정된 값들을 소스상에 읽어올 수 있습니다. @PropertySource의 괄호안에 설정값의 경로와 properties 명을 입력합니다. @SpringBootApplication @PropertySource("application.properties") public class testPropertiesApplication{ } application.properties의 값들을 확인합니다. #Postgresql Config spring.datasource.url=jdbc:postgresql://localhost:5432/testDB spr..
보노보노92
'properties' 태그의 글 목록