From 70273b49a7530df98923536c7c593c42ff160d7f Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 23 三月 2019 13:44:16 +0800
Subject: [PATCH] 解决菜单不起作用问题
---
WebService/src/main/java/com/java110/web/WebServiceApplicationStart.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/WebService/src/main/java/com/java110/web/WebServiceApplicationStart.java b/WebService/src/main/java/com/java110/web/WebServiceApplicationStart.java
index 69d0eca..ac1becb 100644
--- a/WebService/src/main/java/com/java110/web/WebServiceApplicationStart.java
+++ b/WebService/src/main/java/com/java110/web/WebServiceApplicationStart.java
@@ -6,6 +6,8 @@
import org.apache.catalina.connector.Connector;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
@@ -33,6 +35,7 @@
@SpringBootApplication(scanBasePackages={"com.java110.service","com.java110.web","com.java110.core","com.java110.cache"})
@EnableDiscoveryClient
//@EnableConfigurationProperties(EventProperties.class)
+
public class WebServiceApplicationStart {
/**
@@ -40,7 +43,7 @@
* @return restTemplate
*/
@Bean
- @LoadBalanced
+ //@LoadBalanced
public RestTemplate restTemplate() {
StringHttpMessageConverter m = new StringHttpMessageConverter(Charset.forName("UTF-8"));
RestTemplate restTemplate = new RestTemplateBuilder().additionalMessageConverters(m).build();
--
Gitblit v1.8.0