I want to equip my Spring MVC application with authentication. To this end, I use Spring security in the following way:
(EDIT: I created a new test project in order to have all configuration in one place)
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans ...>
<annotation-driven />
<resources mapping="/resources/**" location="/resources/" />
<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
<sec:http auto-config='true'>
<sec:intercept-url pattern="/**" access="ROLE_USER" />
</sec:http>
<sec:authentication-manager>
<sec:authentication-provider>
<sec:user-service>
<sec:user name="jimi" password="jimispassword" authorities="ROLE_USER, ROLE_ADMIN" />
<sec:user name="bob" password="bobspassword" authorities="ROLE_USER" />
</sec:user-service>
</sec:authentication-provider>
</sec:authentication-manager>
<context:component-scan base-package="de.emundo.project" />
</beans:beans>
If I request any page from the deployed server, no login redirection is undertaken. It is as if spring-security.xml was not included, at all (which it is, obviously).
Am I missing something here?