본문 바로가기

'o'

[Thymeleaf]

 

dev 서버 환경 확인 

th:if="${@environment.getActiveProfiles()[0] eq 'dev'}"

 

 

prod 서버 환경 확인 

th:if="${@environment.getActiveProfiles()[0] eq 'prod'}"

 

 

''o'' 카테고리의 다른 글

[apache] maven activemq  (0) 2021.07.13
[Thymeleaf] 서버 환경 확인  (0) 2021.07.05
[github]  (0) 2021.05.11
[Mybatis] Spring X is ambiguous in Result Maps collection 에러 원인과 해결 방법  (0) 2021.04.19
[html] 이미지 업로드  (0) 2021.04.15