thymeleaf 에서 서버 환경 확인
dev 서버 환경 확인
th:if="${@environment.getActiveProfiles()[0] eq 'dev'}"
prod 서버 환경 확인
th:if="${@environment.getActiveProfiles()[0] eq 'prod'}"
''o'' 카테고리의 다른 글
[chart.js] (0) | 2021.07.30 |
---|---|
[apache] maven activemq (0) | 2021.07.13 |
[Thymeleaf] (0) | 2021.06.17 |
[github] (0) | 2021.05.11 |
[Mybatis] Spring X is ambiguous in Result Maps collection 에러 원인과 해결 방법 (0) | 2021.04.19 |