|
@ -11,7 +11,7 @@ import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactor |
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
import org.springframework.boot.web.servlet.server.ServletWebServerFactory; |
|
|
import org.springframework.boot.web.servlet.server.ServletWebServerFactory; |
|
|
import org.springframework.context.annotation.Bean; |
|
|
import org.springframework.context.annotation.Bean; |
|
|
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; |
|
|
import org.springframework.retry.annotation.EnableRetry; |
|
|
import org.springframework.scheduling.annotation.EnableAsync; |
|
|
import org.springframework.scheduling.annotation.EnableAsync; |
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement; |
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
@EnableMethodCache(basePackages = "org.nl") |
|
|
@EnableMethodCache(basePackages = "org.nl") |
|
|
@EnableCreateCacheAnnotation |
|
|
@EnableCreateCacheAnnotation |
|
|
@MapperScan("org.nl.**.mapper") |
|
|
@MapperScan("org.nl.**.mapper") |
|
|
|
|
|
@EnableRetry //https://juejin.cn/post/7094613787973517343
|
|
|
public class AppRun { |
|
|
public class AppRun { |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|