You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
package com.dxhy;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
import org.springframework.context.annotation.Import;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
import com.dxhy.auth.client.EnableDxhyAuthClient;
|
|
import com.dxhy.common.datasource.config.DynamicDataSourceConfig;
|
|
|
|
/**
|
|
* @author jiaohongyang
|
|
*/
|
|
@SpringBootApplication
|
|
@EnableEurekaClient
|
|
@EnableCircuitBreaker
|
|
@EnableFeignClients({"com.dxhy.auth.client.feign"})
|
|
@EnableScheduling
|
|
@EnableDxhyAuthClient
|
|
@EnableTransactionManagement(proxyTargetClass = true)
|
|
@EnableAspectJAutoProxy(exposeProxy = true)
|
|
@Import({DynamicDataSourceConfig.class})
|
|
@ComponentScan("com.dxhy.*")
|
|
public class DxhyManageApplication {
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(DxhyManageApplication.class, args);
|
|
}
|
|
}
|
|
|