File tree Expand file tree Collapse file tree 9 files changed +16
-16
lines changed
Spring-Security-Demo/src/main/java/cn/mrdear/security Expand file tree Collapse file tree 9 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity ;
1+ package cn .mrdear .security ;
22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .config ;
1+ package cn .mrdear .security .config ;
22
33import org .springframework .context .annotation .Bean ;
44import org .springframework .context .annotation .Configuration ;
55
6- import cn .mrdear .servuity .util .JwtTokenUtil ;
6+ import cn .mrdear .security .util .JwtTokenUtil ;
77
88/**
99 * 配置一些线程安全的工具类
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .config ;
1+ package cn .mrdear .security .config ;
22
33import javax .servlet .FilterChain ;
44import javax .servlet .FilterConfig ;
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .config ;
1+ package cn .mrdear .security .config ;
22
33import org .springframework .context .annotation .Configuration ;
44import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
99import org .springframework .security .web .authentication .UsernamePasswordAuthenticationFilter ;
1010import org .springframework .security .web .context .NullSecurityContextRepository ;
1111
12- import cn .mrdear .servuity .util .JwtTokenUtil ;
12+ import cn .mrdear .security .util .JwtTokenUtil ;
1313
1414import javax .annotation .Resource ;
1515
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .config ;
1+ package cn .mrdear .security .config ;
22
33import lombok .extern .slf4j .Slf4j ;
44
55import org .springframework .security .core .Authentication ;
66import org .springframework .security .core .context .SecurityContextHolder ;
77import org .springframework .web .filter .OncePerRequestFilter ;
88
9- import cn .mrdear .servuity .util .JwtTokenUtil ;
9+ import cn .mrdear .security .util .JwtTokenUtil ;
1010import io .jsonwebtoken .JwtException ;
1111
1212import javax .servlet .FilterChain ;
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .controller ;
1+ package cn .mrdear .security .controller ;
22
33import com .google .common .collect .Lists ;
44
88import org .springframework .web .bind .annotation .GetMapping ;
99import org .springframework .web .bind .annotation .RestController ;
1010
11- import cn .mrdear .servuity .dto .TokenUserDTO ;
12- import cn .mrdear .servuity .util .JwtTokenUtil ;
11+ import cn .mrdear .security .dto .TokenUserDTO ;
12+ import cn .mrdear .security .util .JwtTokenUtil ;
1313
1414import javax .annotation .Resource ;
1515
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .dto ;
1+ package cn .mrdear .security .dto ;
22
33import org .springframework .security .core .Authentication ;
44import org .springframework .security .core .GrantedAuthority ;
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .dto ;
1+ package cn .mrdear .security .dto ;
22
33import lombok .Data ;
44
Original file line number Diff line number Diff line change 1- package cn .mrdear .servuity .util ;
1+ package cn .mrdear .security .util ;
22
33import org .apache .commons .lang3 .math .NumberUtils ;
44import org .springframework .beans .factory .annotation .Value ;
55import org .springframework .security .core .Authentication ;
66
7- import cn .mrdear .servuity .dto .TokenUserAuthentication ;
8- import cn .mrdear .servuity .dto .TokenUserDTO ;
7+ import cn .mrdear .security .dto .TokenUserAuthentication ;
8+ import cn .mrdear .security .dto .TokenUserDTO ;
99import io .jsonwebtoken .Claims ;
1010import io .jsonwebtoken .Jwts ;
1111import io .jsonwebtoken .SignatureAlgorithm ;
You can’t perform that action at this time.
0 commit comments