|
@ -1,8 +1,6 @@ |
|
|
package org.nl; |
|
|
package org.nl; |
|
|
|
|
|
|
|
|
import com.alicp.jetcache.Cache; |
|
|
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 io.swagger.annotations.Api; |
|
|
import org.nl.annotation.rest.AnonymousGetMapping; |
|
|
import org.nl.annotation.rest.AnonymousGetMapping; |
|
|
import org.nl.utils.SpringContextHolder; |
|
|
import org.nl.utils.SpringContextHolder; |
|
@ -35,8 +33,6 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
@EnableTransactionManagement |
|
|
@EnableTransactionManagement |
|
|
@EnableJpaAuditing(auditorAwareRef = "auditorAware") |
|
|
@EnableJpaAuditing(auditorAwareRef = "auditorAware") |
|
|
|
|
|
|
|
|
@EnableMethodCache(basePackages = "org.nl") |
|
|
|
|
|
@EnableCreateCacheAnnotation |
|
|
|
|
|
public class AppRun implements CommandLineRunner { |
|
|
public class AppRun implements CommandLineRunner { |
|
|
|
|
|
|
|
|
private Cache<String, Object> userCache; |
|
|
private Cache<String, Object> userCache; |
|
|