1234567891011121314151617181920212223 |
- 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.data.jpa.repository.config.EnableJpaRepositories;
- /**
- * Created by chenweida on 2017/5/10.
- * localhost:10020/refresh 刷新当个微服务的配置 可以在需要刷新的bean上面@RefreshScope
- */
- @SpringBootApplication
- @EnableDiscoveryClient//服务注册到发现服务
- @EnableJpaRepositories(
- entityManagerFactoryRef="wlyyEntityManagerFactory",
- transactionManagerRef = "wlyyTransactionManager"
- )
- public class SvrWlyyApplication {
- public static void main(String[] args) {
- SpringApplication.run(SvrWlyyApplication.class, args);
- }
- }
|