Commit 6840cbd8 by tyfanchz

调整代码

1 parent 1497a2c8
...@@ -8,7 +8,6 @@ import org.springframework.boot.web.servlet.ServletComponentScan; ...@@ -8,7 +8,6 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
/** /**
* @Title: ServiceApplication.java * @Title: ServiceApplication.java
...@@ -24,7 +23,6 @@ import org.springframework.context.annotation.ComponentScan; ...@@ -24,7 +23,6 @@ import org.springframework.context.annotation.ComponentScan;
@ServletComponentScan @ServletComponentScan
@EnableFeignClients @EnableFeignClients
@EnableDubbo @EnableDubbo
@ComponentScan("com.glsx.api")
public class SmartApiApplication extends SpringBootServletInitializer { public class SmartApiApplication extends SpringBootServletInitializer {
/** /**
......
...@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
@FeignClient(name = "${feigin.server.name}",url = "${feigin.server.url}", fallback = IndexHystrix.class) @FeignClient(name = "${feign.server.name}",url = "${feign.server.url}", fallback = IndexHystrix.class)
public interface IndexFeignClient { public interface IndexFeignClient {
@ResponseBody @ResponseBody
......
...@@ -15,9 +15,9 @@ logging.level.org.springframework.boot.autoconfigure=off ...@@ -15,9 +15,9 @@ logging.level.org.springframework.boot.autoconfigure=off
logging.level.com.glsx.api=DEBUG logging.level.com.glsx.api=DEBUG
logging.path=/data/java_log/jetty/smartService/chejia-smart-api logging.path=/data/java_log/jetty/smartService/chejia-smart-api
feigin.server.name=chejia-smart-service feign.server.name=chejia-smart-service
feigin.server.url=http://localhost:8209/smartService feign.server.url=http://localhost:8209/smartService
dubbo.registry.address=zookeeper://192.168.1.36:2181 dubbo.registry.address=zookeeper://192.168.1.36:2181?init.timeout=60000
dubbo.registry.timeout=10000 dubbo.registry.timeout=10000
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!