|  | @@ -1,20 +1,17 @@
 | 
	
		
			
				|  |  |  package com.ym.mec.education;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import com.spring4all.swagger.EnableSwagger2Doc;
 | 
	
		
			
				|  |  | -import com.ym.mec.common.redis.service.RedisCache;
 | 
	
		
			
				|  |  |  import org.mybatis.spring.annotation.MapperScan;
 | 
	
		
			
				|  |  | -import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.boot.SpringApplication;
 | 
	
		
			
				|  |  |  import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
	
		
			
				|  |  | -import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 | 
	
		
			
				|  |  |  import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 | 
	
		
			
				|  |  |  import org.springframework.cloud.client.loadbalancer.LoadBalanced;
 | 
	
		
			
				|  |  |  import org.springframework.context.annotation.Bean;
 | 
	
		
			
				|  |  |  import org.springframework.context.annotation.ComponentScan;
 | 
	
		
			
				|  |  |  import org.springframework.context.annotation.Configuration;
 | 
	
		
			
				|  |  | -import org.springframework.data.redis.core.RedisTemplate;
 | 
	
		
			
				|  |  |  import org.springframework.web.client.RestTemplate;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.spring4all.swagger.EnableSwagger2Doc;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  @MapperScan({"com.ym.mec.education.mapper", "com.ym.mec.biz.dal.dao"})
 | 
	
		
			
				|  |  |  @SpringBootApplication
 | 
	
		
			
				|  |  |  @EnableDiscoveryClient
 | 
	
	
		
			
				|  | @@ -22,8 +19,6 @@ import org.springframework.web.client.RestTemplate;
 | 
	
		
			
				|  |  |  @Configuration
 | 
	
		
			
				|  |  |  @EnableSwagger2Doc
 | 
	
		
			
				|  |  |  public class EducationApplication {
 | 
	
		
			
				|  |  | -    @Autowired
 | 
	
		
			
				|  |  | -    private RedisTemplate<String, Object> redisTemplate;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      public static void main(String[] args) {
 | 
	
		
			
				|  |  |          SpringApplication.run(EducationApplication.class, args);
 | 
	
	
		
			
				|  | @@ -35,9 +30,4 @@ public class EducationApplication {
 | 
	
		
			
				|  |  |          return new RestTemplate();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @Bean
 | 
	
		
			
				|  |  | -    @ConditionalOnBean(RedisTemplate.class)
 | 
	
		
			
				|  |  | -    public RedisCache<String, Object> redisCache() {
 | 
	
		
			
				|  |  | -        return new RedisCache<String, Object>(redisTemplate);
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |  }
 |