1) Добавить эту зависимость в pom.xml
:
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity3</artifactId>
<version>3.0.0.BETA01</version>
</dependency>
2) Добавить дополнительный диалект в templateEngine
боба:
<!-- Thymeleaf Template Engine (Spring4-specific version) -->
<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">
<property name="templateResolvers">
<set>
<ref bean="templateResolver" />
</set>
</property>
<property name="additionalDialects">
<set>
<bean class="org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect" />
</set>
</property>
</bean>
Я добавил эти библиотеки и настройки. Я думаю, что это не решение проблемы. – fuzzy28
Показать полный код вашего 'home.html' –
@ fuzzy28 Вы посмотрели на этот вопрос: http://stackoverflow.com/questions/18309864/secauthorize-and-secauthentication-annotations-dont-work? –