0
메신저 로그인 페이지에 스프링 보안을 사용하고 있습니다. 데이터베이스 사용자 비밀번호는 sha-password 인코더를 사용하여 저장됩니다. 봄 보안에도 같은 것을 사용하고 싶습니다. .xml.i는생성자 arg 오류에 대한 spring-security.xml의 오류
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'constructor-arg'.
- Security namespace does not support decoration of element [constructor-arg]
- Configuration problem: Security namespace does not support decoration of element.
사람이 저를 도와주세요 에서이
<beans:bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.ShaPasswordEncoder">
<constructor-arg value="256"/>
</beans:bean>
<authentication-manager>
<authentication-provider>
<password-encoder ref="passwordEncoder"/>
<jdbc-user-service data-source-ref="dataSource"
users-by-username-query=
"select email,password, 'true' as enabled from user_login where email=? limit 1"
authorities-by-username-query=
"select email, role from user_roles where email =? " />
</authentication-provider>
</authentication-manager>
</beans:beans>
메신저 점점 오류를 시도했다.
감사합니다. @ holmis83 .. – user3189357