代码重构
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package org.nl;
|
||||
|
||||
import com.alicp.jetcache.Cache;
|
||||
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
|
||||
import com.alicp.jetcache.anno.config.EnableMethodCache;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.nl.annotation.rest.AnonymousGetMapping;
|
||||
import org.nl.utils.SpringContextHolder;
|
||||
@@ -35,8 +33,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@EnableTransactionManagement
|
||||
@EnableJpaAuditing(auditorAwareRef = "auditorAware")
|
||||
|
||||
@EnableMethodCache(basePackages = "org.nl")
|
||||
@EnableCreateCacheAnnotation
|
||||
public class AppRun implements CommandLineRunner {
|
||||
|
||||
private Cache<String, Object> userCache;
|
||||
|
||||
Reference in New Issue
Block a user