🐛 fix:修复序列化问题
This commit is contained in:
parent
030abafd1f
commit
78fa6f42b0
@ -72,7 +72,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/swagger-ui/**",
|
"/swagger-ui/**",
|
||||||
"/webjars/**",
|
"/webjars/**",
|
||||||
"/websocket/**",
|
"/websocket/**",
|
||||||
"/captcha").anonymous()
|
"/captcha",
|
||||||
|
"druid/**").anonymous()
|
||||||
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
|
// .antMatchers("/testCors").hasAuthority("system:dept:list222")
|
||||||
// 除上面外的所有请求全部需要鉴权认证
|
// 除上面外的所有请求全部需要鉴权认证
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
package com.cnbm.admin.entity;
|
package com.cnbm.admin.entity;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import java.io.Serializable;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import java.util.Collection;
|
||||||
import lombok.Data;
|
import java.util.List;
|
||||||
import lombok.NoArgsConstructor;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.springframework.security.core.GrantedAuthority;
|
import org.springframework.security.core.GrantedAuthority;
|
||||||
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
||||||
import org.springframework.security.core.userdetails.UserDetails;
|
import org.springframework.security.core.userdetails.UserDetails;
|
||||||
|
|
||||||
import java.util.Collection;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import java.util.List;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author weihongyang
|
* @Author weihongyang
|
||||||
@ -20,7 +23,9 @@ import java.util.stream.Collectors;
|
|||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class LoginUser implements UserDetails {
|
public class LoginUser implements UserDetails,Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private SysUserEntity sysUserEntity;
|
private SysUserEntity sysUserEntity;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user