main
黄海 1 year ago
parent 4e87e4dcd9
commit c91b241a7b

@ -107,10 +107,17 @@ zuul:
# 基于配置的服务器列表:需要在项目配置文件中通过<服务名称>.ribbon.listOfServers进行设置。 # 基于配置的服务器列表:需要在项目配置文件中通过<服务名称>.ribbon.listOfServers进行设置。
# 如user-service.ribbon.listOfServers=http://127.0.0.1:8082,http://127.0.0.1:8083 # 如user-service.ribbon.listOfServers=http://127.0.0.1:8082,http://127.0.0.1:8083
# 用户模块
# D:\dsWork\YltProject\Ylt\ms-user\src\main\java\com\charge\rpc\web\UserRpcApiController.java
userapi:
ribbon:
#listOfServers: http://i100c.3322.org:32150
listOfServers: http://127.0.0.1:7022
# 订单后台模块 # 订单后台模块
orderbkapi: orderbkapi:
ribbon: ribbon:
listOfServers: 127.0.0.1:7011 listOfServers: http://127.0.0.1:7011
#分发模块 #分发模块
distribute: distribute:
@ -143,10 +150,6 @@ stationapi:
listOfServers: http://i100c.3322.org:30836 listOfServers: http://i100c.3322.org:30836
# 用户模块
userapi:
ribbon:
listOfServers: http://i100c.3322.org:32150
# 通知模块 # 通知模块
cheweiapi: cheweiapi:

@ -1,14 +1,9 @@
package com.charge; package com.charge;
import com.charge.filter.CorsFilter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.cloud.netflix.feign.EnableFeignClients; import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@ -19,7 +14,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
/** /**
* Created by Administrator on 2017/8/15. * Created by Administrator on 2017/8/15.
*/ */
@ComponentScan("com.charge")
@SpringBootApplication @SpringBootApplication
@EnableScheduling @EnableScheduling
@EnableTransactionManagement @EnableTransactionManagement

Loading…
Cancel
Save