|
|
@@ -7,6 +7,7 @@ import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
+import org.springframework.context.annotation.ComponentScan;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
/**
|
|
|
@@ -20,6 +21,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
@EnableAuthClient
|
|
|
@MapperScan("com.usoftchina.saas.purchase.mapper")
|
|
|
@EnableDynamicDataSource
|
|
|
+@ComponentScan(basePackages = {"com.usoftchina.saas"})
|
|
|
public class PurchaseApplication {
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(PurchaseApplication.class, args);
|