sentienl gateway 标识去除,spring-cloud-alibaba-sentinel-gateway 会默认标识
parent
30e755ff8a
commit
b209fc0bb2
|
|
@ -7,7 +7,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
public class GatewayServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("csp.sentinel.app.type", "1");
|
||||
// 启动 Spring Boot 应用
|
||||
SpringApplication.run(GatewayServerApplication.class, args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ import javax.annotation.security.PermitAll;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* sentinel 示例
|
||||
* TODO 芋艿:考虑后续优化示例
|
||||
*/
|
||||
@Tag(name = "管理后台 - sentinel")
|
||||
@RestController
|
||||
@RequestMapping("/infra/sentinel/demo")
|
||||
|
|
|
|||
Loading…
Reference in New Issue