Commit 4b0ce8c6 authored by 吴泽佳's avatar 吴泽佳

Merge branch 'v0.0.1-day-subject' into 'dev'

添加,feo-common2

See merge request !2
parents df934134 e47a672e
...@@ -7,17 +7,25 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -7,17 +7,25 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
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.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import javax.sql.DataSource; import javax.sql.DataSource;
import java.sql.Connection; import java.sql.Connection;
import java.sql.SQLException; import java.sql.SQLException;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients @EnableFeignClients
@MapperScan(basePackages = "com.tanpu.feo.**.mapper") @EnableTransactionManagement
//@MapperScan(basePackages = "com.tanpu.feo.**.mapper")
@ComponentScan({"com.tanpu.common","com.tanpu.feo.feojob"})
@Slf4j @Slf4j
@EnableScheduling //开启定时任务 @EnableScheduling //开启定时任务
public class FeoJobApplication implements CommandLineRunner { public class FeoJobApplication implements CommandLineRunner {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment