File tree Expand file tree Collapse file tree
src/main/java/com/codingapi/tm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 <artifactId >spring-boot-starter-web</artifactId >
5757 </dependency >
5858
59- <dependency >
60- <groupId >org.springframework.cloud</groupId >
61- <artifactId >spring-cloud-starter-eureka</artifactId >
62- </dependency >
6359
6460 <dependency >
6561 <groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 11package com .codingapi .tm ;
22
33import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
4- import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
5- import org .springframework .boot .autoconfigure .orm .jpa .HibernateJpaAutoConfiguration ;
64import org .springframework .context .annotation .Bean ;
75import org .springframework .context .annotation .Configuration ;
86import org .springframework .web .client .RestTemplate ;
1210 */
1311
1412@ Configuration
15- @ EnableAutoConfiguration ( exclude = { DataSourceAutoConfiguration . class , HibernateJpaAutoConfiguration . class })
13+ @ EnableAutoConfiguration
1614public class RestConfig {
1715
1816
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5- import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
6- import org .springframework .boot .autoconfigure .orm .jpa .HibernateJpaAutoConfiguration ;
75import org .springframework .cloud .client .discovery .EnableDiscoveryClient ;
86
97
10- @ SpringBootApplication ( exclude = { DataSourceAutoConfiguration . class , HibernateJpaAutoConfiguration . class })
8+ @ SpringBootApplication
119@ EnableDiscoveryClient
1210public class TxManagerApplication {
1311
Original file line number Diff line number Diff line change 22
33import org .slf4j .Logger ;
44import org .slf4j .LoggerFactory ;
5+ import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
56import org .springframework .boot .context .properties .ConfigurationProperties ;
67import org .springframework .context .annotation .Bean ;
7- import org .springframework .context .annotation .Configuration ;
88import org .springframework .data .redis .connection .jedis .JedisConnectionFactory ;
99import org .springframework .data .redis .core .RedisTemplate ;
1010import org .springframework .data .redis .core .StringRedisTemplate ;
1414 * Created by lorne on 2017/7/5.
1515 */
1616
17- @ Configuration
17+ @ EnableAutoConfiguration
1818public class RedisConfig {
1919
2020 private static Logger logger = LoggerFactory .getLogger (RedisConfig .class );
You can’t perform that action at this time.
0 commit comments