|
@@ -2,7 +2,7 @@ package com.chelvc.cloud.chelvc;
|
|
|
|
|
|
import com.chelvc.cloud.admin.AdminServer;
|
|
import com.chelvc.cloud.admin.AdminServer;
|
|
import com.chelvc.cloud.maintain.MaintainServer;
|
|
import com.chelvc.cloud.maintain.MaintainServer;
|
|
-import com.chelvc.cloud.uc.server.UCServer;
|
|
|
|
|
|
+import com.chelvc.cloud.uc.server.UserServer;
|
|
import com.chelvc.cloud.vehicle.server.VehicleServer;
|
|
import com.chelvc.cloud.vehicle.server.VehicleServer;
|
|
import com.chelvc.framework.base.config.MultiserverMvcConfigurer;
|
|
import com.chelvc.framework.base.config.MultiserverMvcConfigurer;
|
|
import com.chelvc.framework.base.context.BeanFullnameGenerator;
|
|
import com.chelvc.framework.base.context.BeanFullnameGenerator;
|
|
@@ -12,6 +12,8 @@ import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
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.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
|
+import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.FilterType;
|
|
import org.springframework.context.annotation.FilterType;
|
|
import org.springframework.context.annotation.Import;
|
|
import org.springframework.context.annotation.Import;
|
|
@@ -22,13 +24,15 @@ import org.springframework.context.annotation.Import;
|
|
* @author Woody
|
|
* @author Woody
|
|
* @date 2021/10/20
|
|
* @date 2021/10/20
|
|
*/
|
|
*/
|
|
|
|
+@EnableDiscoveryClient
|
|
@EnableDubbo(scanBasePackages = "com.chelvc")
|
|
@EnableDubbo(scanBasePackages = "com.chelvc")
|
|
|
|
+@EnableFeignClients(basePackages = "com.chelvc")
|
|
@MapperScan(basePackages = "com.chelvc.cloud.**.dao", nameGenerator = BeanFullnameGenerator.class)
|
|
@MapperScan(basePackages = "com.chelvc.cloud.**.dao", nameGenerator = BeanFullnameGenerator.class)
|
|
@SpringBootApplication(scanBasePackages = "com.chelvc", nameGenerator = BeanFullnameGenerator.class)
|
|
@SpringBootApplication(scanBasePackages = "com.chelvc", nameGenerator = BeanFullnameGenerator.class)
|
|
@ComponentScan(basePackages = "com.chelvc",
|
|
@ComponentScan(basePackages = "com.chelvc",
|
|
nameGenerator = BeanFullnameGenerator.class,
|
|
nameGenerator = BeanFullnameGenerator.class,
|
|
excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {
|
|
excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {
|
|
- UCServer.class,
|
|
|
|
|
|
+ UserServer.class,
|
|
AdminServer.class,
|
|
AdminServer.class,
|
|
VehicleServer.class,
|
|
VehicleServer.class,
|
|
MaintainServer.class
|
|
MaintainServer.class
|