网关拦截优化
This commit is contained in:
parent
9756a94315
commit
3561258361
@ -35,7 +35,6 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-gateway</artifactId>
|
||||
<version>4.1.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@ -26,7 +26,7 @@ public class SaTokenConfigure {
|
||||
// 开放地址
|
||||
.addExclude("/user/**")
|
||||
.addExclude("/payment/**")
|
||||
.addExclude("/**/api/**")
|
||||
.addExclude("/operations/ebikeBikeInfo/api/**")
|
||||
// 鉴权方法:每次访问进入
|
||||
.setAuth(obj -> {
|
||||
if (isCheck) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user