Commit b514d3c5 by zhangxingmin

push

parent d33188a5
...@@ -14,7 +14,13 @@ import org.springframework.cloud.openfeign.EnableFeignClients; ...@@ -14,7 +14,13 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
public class GatewayApplication { public class GatewayApplication {
public static void main(String[] args) { public static void main(String[] args) {
new SpringApplicationBuilder(GatewayApplication.class) new SpringApplicationBuilder(GatewayApplication.class)
.properties("spring.application.name="+ ServerNameConstants.ydGateway) .properties(
"spring.application.name=yd-gateway",
// 设置响应式模式,但不排除MVC
"spring.main.web-application-type=reactive",
"spring.main.allow-bean-definition-overriding=true",
"spring.main.allow-circular-references=true"
)
.build().run(args); .build().run(args);
System.out.println("(♥◠‿◠)ノ゙ yd-gateway网关启动成功 ლ(´ڡ`ლ)゙ "); System.out.println("(♥◠‿◠)ノ゙ yd-gateway网关启动成功 ლ(´ڡ`ლ)゙ ");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment