XML을 통해 스프링 보안을 구성하려고 시도했지만 작동하지 않을 수 있습니다. 여기에 지금까지 무엇을 가지고 : 내가 찾은XML의 스프링 보안 3 구성
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
[...]
<security:http auto-config="true">
<security:intercept-url pattern="/**" access="ROLE_USER" />
<security:http-basic />
</security:http>
<security:authentication-manager>
<security:authentication-provider>
[???] <!-- What goes here? -->
</security:authentication-provider>
</security:authentication-manager>
</beans>
모든 자습서는 나를 자리에 <user-service>
을 데려 가고 싶다는 것,하지만 NetBeans는 자동 완성하는 요소로하지 않습니다. 그 요소를 닮은 유일한 것은 any-user-service
입니다. 제가 이해하는 한 "추상적 인"요소입니다.
사용자 및 암호의 메모리 내장 목록을 구성하기 만하면됩니다. 스프링 보안 버전 3에서 어떻게 할 수 있습니까?
감사합니다. 그러나 제 질문에서 설명했듯이 'user-service'는 그 위치에서 유효한 요소가 아닌 것 같습니다. 아마도 이것이 Spring Security의 상대적으로 최근의 변경이라고 생각합니다. – damd