spring security共4篇
Spring Security实现基于URL的授权-JoyCode 编程小战

Spring Security实现基于URL的授权

参考: Spring Security 基于URL的权限判断
螃蟹横着走的头像-JoyCode 编程小战螃蟹横着走1年前
00
Spring Security 权限控制-JoyCode 编程小战

Spring Security 权限控制

重要配置类: org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter 配置指定用户可访问: package cn.com.joycode.nimble.demo; import org.sprin...
螃蟹横着走的头像-JoyCode 编程小战螃蟹横着走4年前
00
java.lang.ClassNotFoundException: org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource-JoyCode 编程小战

java.lang.ClassNotFoundException: org.springframework.security.messaging.access.intercept.MessageSecurityMetadataSource

出现该错误,请引入下面的依赖包: <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-messaging</artifactId> </dependency>
螃蟹横着走的头像-JoyCode 编程小战螃蟹横着走4年前
00
spring security 不拦截跨域请求-JoyCode 编程小战

spring security 不拦截跨域请求

在spring boot 应用中引入了spring security,当出现跨域的OPTIONS请求时,发现被拦截,加入下面设置可实现对OPTIONS请求的放行。 @EnableWebSecurity public class WebSecurityConfiguration e...
螃蟹横着走的头像-JoyCode 编程小战螃蟹横着走5年前
00