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