摘要:
spring security异常处理的三种方式 1、在spring security配置文件中处理 注意,这种方式只能处理403权限不足异常 <!--设置可以用spring的el表达式配置Spring Security并自动生成对应配置组件(过滤器)--> <security:http auto- 阅读全文
posted @ 2021-02-24 15:11
Y-wee
阅读(828)
评论(0)
推荐(0)
摘要:
spring security权限控制 SpringSecurity可以通过注解的方式来控制类或者方法的访问权限。注解需要开启对应的注解支持,若注解放在controller类中,对应注解支持应该放在mvc配置文件中,因为controller类是有mvc配置文件扫描并创建的,同理,注解放在servic 阅读全文
posted @ 2021-02-24 15:10
Y-wee
阅读(382)
评论(0)
推荐(0)
摘要:
spring security实现记住我功能 1、单选框name设置为remember-me,value设置为true、1、on、yes其中一个都可以 2、开启remember me过滤器 <!--开启remember me过滤器,设置token存储时间为60秒--> <security:remem 阅读全文
posted @ 2021-02-24 15:09
Y-wee
阅读(160)
评论(0)
推荐(0)
摘要:
springsecurity入门案例 1、导包 <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>5.1.5.RE 阅读全文
posted @ 2021-02-24 15:07
Y-wee
阅读(154)
评论(0)
推荐(0)
浙公网安备 33010602011771号