123456789101112131415161718192021222324252627 |
- package com.yihu.jw;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
- import org.springframework.context.annotation.ComponentScan;
- import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
- import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
- /**
- * Created by chenweida on 2017/5/10.
- * localhost:10020/refresh 刷新当个微服务的配置 可以在需要刷新的bean上面@RefreshScope
- */
- @SpringBootApplication
- @EnableDiscoveryClient//服务注册到发现服务
- @EnableJpaRepositories(
- entityManagerFactoryRef="baseEntityManagerFactory",
- transactionManagerRef = "baseTransactionManager"
- )
- @ComponentScan(basePackages={"com"})
- public class SvrBaseApplication {
- public static void main(String[] args) {
- SpringApplication.run(SvrBaseApplication.class, args);
- }
- }
|