@の後ろにBean名をつけることで、そのBeanにアクセスすることができます。 *ThymeleafでSpringのpropertyファイル(application.propertiesなど)に記述している変数を利用したい場合 ${@environment.getProperty('property.key')} *環境ごとに表示を変更したい場合 <div th:if=${@environment.acceptsProfiles('production')}> This is the production profile </div> or <div th:if="${#arrays.contains(@environment.getActiveProfiles(),'production')}"> This is the production profile </div> という形で利用
![ThymeleafでSpringの環境変数を使う | Tagbangers Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/4eca4bf35f88cdba458fee27922cbd3cc10308aa/height=288;version=1;width=512/https%3A%2F%2Fblog.tagbangers.co.jp%2Fresources%2Fimages%2Fogimage.png)