시작이 반

Thymeleaf application.properties 값 조회 본문

Programming/Spring

Thymeleaf application.properties 값 조회

G_Gi 2021. 2. 22. 01:44
SMALL
<a th:href="'https://kauth.kakao.com/oauth/authorize?client_id='+${@environment.getProperty('client_id')}+'&redirect_uri=http://localhost:8080/auth/kakao/callback&response_type=code'"><img height="38px" src="/image/kakao_login_button.png"></a>

${@environment.getProperty(' 변수명 ')}로 접근 가능

 

LIST