如何通过spring security将cookie认证发给浏览器

2025-05-16 06:55:53
推荐回答(1个)
回答1:

安全配置——注册认证提供者

现在认证提供者已经定义好了,我们需要在XML安全配置中指定它,使用可用的命名空间支持:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">


...