caojianbin
2 years ago
42 changed files with 1357 additions and 1361 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway; |
||||
package com.yisai.gateway; |
||||
|
||||
import org.springframework.boot.SpringApplication; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config; |
||||
package com.yisai.gateway.config; |
||||
|
||||
import java.util.Properties; |
||||
import org.springframework.context.annotation.Bean; |
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
package com.ruoyi.gateway.config; |
||||
package com.yisai.gateway.config; |
||||
|
||||
import com.yisai.gateway.handler.SentinelFallbackHandler; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.core.Ordered; |
||||
import org.springframework.core.annotation.Order; |
||||
import com.ruoyi.gateway.handler.SentinelFallbackHandler; |
||||
|
||||
/** |
||||
* 网关限流配置 |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config; |
||||
package com.yisai.gateway.config; |
||||
|
||||
import java.util.Random; |
||||
import com.google.code.kaptcha.text.impl.DefaultTextCreator; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config; |
||||
package com.yisai.gateway.config; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config.properties; |
||||
package com.yisai.gateway.config.properties; |
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
||||
import org.springframework.cloud.context.config.annotation.RefreshScope; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config.properties; |
||||
package com.yisai.gateway.config.properties; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.config.properties; |
||||
package com.yisai.gateway.config.properties; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
@ -1,14 +1,9 @@
@@ -1,14 +1,9 @@
|
||||
package com.ruoyi.gateway.constant; |
||||
package com.yisai.gateway.constant; |
||||
|
||||
import com.ruoyi.gateway.filter.AuthFilter; |
||||
import org.slf4j.LoggerFactory; |
||||
import org.springframework.http.server.reactive.ServerHttpRequest; |
||||
import org.springframework.web.server.ServerWebExchange; |
||||
|
||||
import java.util.List; |
||||
import java.util.Locale; |
||||
import java.util.logging.Logger; |
||||
|
||||
public class MessagesConstant { |
||||
private static final org.slf4j.Logger log = LoggerFactory.getLogger(MessagesConstant.class); |
||||
/**令牌不能为空*/ |
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
package com.ruoyi.gateway.filter; |
||||
package com.yisai.gateway.filter; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
import java.util.regex.Pattern; |
||||
|
||||
import com.ruoyi.gateway.constant.MessagesConstant; |
||||
import com.yisai.gateway.constant.MessagesConstant; |
||||
import org.springframework.cloud.gateway.filter.GatewayFilter; |
||||
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory; |
||||
import org.springframework.stereotype.Component; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.filter; |
||||
package com.yisai.gateway.filter; |
||||
|
||||
import java.util.Collections; |
||||
import java.util.List; |
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
package com.ruoyi.gateway.handler; |
||||
package com.yisai.gateway.handler; |
||||
|
||||
import com.ruoyi.gateway.constant.MessagesConstant; |
||||
import com.yisai.gateway.constant.MessagesConstant; |
||||
import org.springframework.cloud.gateway.support.NotFoundException; |
||||
import org.slf4j.Logger; |
||||
import org.slf4j.LoggerFactory; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.handler; |
||||
package com.yisai.gateway.handler; |
||||
|
||||
import com.alibaba.csp.sentinel.adapter.gateway.sc.callback.GatewayCallbackManager; |
||||
import com.alibaba.csp.sentinel.slots.block.BlockException; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.handler; |
||||
package com.yisai.gateway.handler; |
||||
|
||||
import java.util.Optional; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.gateway.service; |
||||
package com.yisai.gateway.service; |
||||
|
||||
import java.io.IOException; |
||||
import com.ruoyi.common.core.exception.CaptchaException; |
Loading…
Reference in new issue