|
@@ -2,6 +2,7 @@ package com.tzld.piaoquan.recommend.feature;
|
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
+import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
@@ -9,10 +10,13 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
/**
|
|
/**
|
|
* https://github.com/grpc-swagger/grpc-swagger/blob/master/README_CN.md
|
|
* https://github.com/grpc-swagger/grpc-swagger/blob/master/README_CN.md
|
|
*/
|
|
*/
|
|
-@SpringBootApplication
|
|
|
|
|
|
+@SpringBootApplication(exclude = {
|
|
|
|
+ RedisReactiveAutoConfiguration.class
|
|
|
|
+})
|
|
@ComponentScan({
|
|
@ComponentScan({
|
|
"com.tzld.piaoquan.recommend.feature.service",
|
|
"com.tzld.piaoquan.recommend.feature.service",
|
|
"com.tzld.piaoquan.recommend.feature.grpcservice",
|
|
"com.tzld.piaoquan.recommend.feature.grpcservice",
|
|
|
|
+ "com.tzld.piaoquan.recommend.feature.web",
|
|
"com.tzld.piaoquan.recommend.feature.config"
|
|
"com.tzld.piaoquan.recommend.feature.config"
|
|
})
|
|
})
|
|
@EnableEurekaClient
|
|
@EnableEurekaClient
|