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 ;
2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import 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 ;
2
2
3
3
import org .springframework .context .annotation .Bean ;
4
4
import org .springframework .context .annotation .Configuration ;
5
5
6
- import cn .mrdear .servuity .util .JwtTokenUtil ;
6
+ import cn .mrdear .security .util .JwtTokenUtil ;
7
7
8
8
/**
9
9
* 配置一些线程安全的工具类
Original file line number Diff line number Diff line change 1
- package cn .mrdear .servuity .config ;
1
+ package cn .mrdear .security .config ;
2
2
3
3
import javax .servlet .FilterChain ;
4
4
import 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 ;
2
2
3
3
import org .springframework .context .annotation .Configuration ;
4
4
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
9
9
import org .springframework .security .web .authentication .UsernamePasswordAuthenticationFilter ;
10
10
import org .springframework .security .web .context .NullSecurityContextRepository ;
11
11
12
- import cn .mrdear .servuity .util .JwtTokenUtil ;
12
+ import cn .mrdear .security .util .JwtTokenUtil ;
13
13
14
14
import javax .annotation .Resource ;
15
15
Original file line number Diff line number Diff line change 1
- package cn .mrdear .servuity .config ;
1
+ package cn .mrdear .security .config ;
2
2
3
3
import lombok .extern .slf4j .Slf4j ;
4
4
5
5
import org .springframework .security .core .Authentication ;
6
6
import org .springframework .security .core .context .SecurityContextHolder ;
7
7
import org .springframework .web .filter .OncePerRequestFilter ;
8
8
9
- import cn .mrdear .servuity .util .JwtTokenUtil ;
9
+ import cn .mrdear .security .util .JwtTokenUtil ;
10
10
import io .jsonwebtoken .JwtException ;
11
11
12
12
import 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 ;
2
2
3
3
import com .google .common .collect .Lists ;
4
4
8
8
import org .springframework .web .bind .annotation .GetMapping ;
9
9
import org .springframework .web .bind .annotation .RestController ;
10
10
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 ;
13
13
14
14
import javax .annotation .Resource ;
15
15
Original file line number Diff line number Diff line change 1
- package cn .mrdear .servuity .dto ;
1
+ package cn .mrdear .security .dto ;
2
2
3
3
import org .springframework .security .core .Authentication ;
4
4
import 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 ;
2
2
3
3
import lombok .Data ;
4
4
Original file line number Diff line number Diff line change 1
- package cn .mrdear .servuity .util ;
1
+ package cn .mrdear .security .util ;
2
2
3
3
import org .apache .commons .lang3 .math .NumberUtils ;
4
4
import org .springframework .beans .factory .annotation .Value ;
5
5
import org .springframework .security .core .Authentication ;
6
6
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 ;
9
9
import io .jsonwebtoken .Claims ;
10
10
import io .jsonwebtoken .Jwts ;
11
11
import io .jsonwebtoken .SignatureAlgorithm ;
You can’t perform that action at this time.
0 commit comments