<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">


<http use-expressions="false">

<intercept-url pattern="/**" access="ROLE_USER" />
<form-login/>
</http>

<!-- 认证管理器 -->
<authentication-manager>
<authentication-provider>
<user-service>
<user name="admin" password="123456" authorities="ROLE_USER"/>
</user-service>
</authentication-provider>
</authentication-manager>
</beans:beans>

相关文章:

  • 2021-06-01
  • 2021-11-11
  • 2021-07-15
  • 2021-08-31
  • 2021-11-14
  • 2022-12-23
  • 2021-11-08
  • 2021-10-19
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-10-30
  • 2021-12-06
  • 2021-09-29
  • 2021-10-31
  • 2021-11-20
相关资源
相似解决方案