文件名称:Spring security+jwt服务鉴权完整代码.zip
文件大小:14KB
文件格式:ZIP
更新时间:2022-09-29 05:04:36
jwt spring security
Spring security+jwt服务鉴权完整代码.实现服务鉴权访问, 携带token访问服务, 缺失或无效都提示401
【文件预览】:
security_jwt
----filter()
--------JWTLoginFilter.java(4KB)
--------JWTAuthenticationFilter.java(4KB)
----constant()
--------ConstantKey.java(285B)
----controller()
--------BaseController.java(2KB)
--------LoginController.java(3KB)
----impl()
--------UserDetailsServiceImpl.java(1KB)
--------GrantedAuthorityImpl.java(593B)
--------CustomAuthenticationProvider.java(3KB)
----exception()
--------UsernameIsExitedException.java(342B)
--------TokenException.java(328B)
--------BaseException.java(377B)
----config()
--------BCryptPasswordEncoderConfig.java(615B)
----security()
--------WebSecurityConfig.java(4KB)
----repository()
--------UserRepository.java(322B)
----handler()
--------Http401AuthenticationEntryPoint.java(1KB)