ソースを参照

扫描包改成"com.fdkankan.*"

by su 3 年 前
コミット
32a43ca3e7

+ 1 - 5
4dkankan-center-auth/src/main/java/com/fdkankan/auth/AuthApplication.java

@@ -10,11 +10,7 @@ import org.springframework.stereotype.Component;
 @SpringBootApplication
 @EnableScheduling
 @MapperScan("com.fdkankan.auth.mapper")
-@ComponentScan(basePackages = {
-		"com.fdkankan.auth",
-		"com.fdkankan.redis",
-		"com.fdkankan.db"
-})
+@ComponentScan(basePackages = {"com.fdkankan.*"})
 public class AuthApplication {
 
 	public static void main(String[] args) {

+ 1 - 7
4dkankan-center-modeling/src/main/java/com/fdkankan/modeling/ModelingApplication.java

@@ -9,13 +9,7 @@ import org.springframework.context.annotation.ComponentScan;
 @SpringBootApplication
 @EnableDiscoveryClient
 @EnableFeignClients("com.fdkankan.*.api.feign")
-@ComponentScan(basePackages = {
-		"com.fdkankan.common",
-		"com.fdkankan.modeling",
-		"com.fdkankan.fyun",
-		"com.fdkankan.redis",
-		"com.fdkankan.mq"
-})
+@ComponentScan(basePackages = {"com.fdkankan.*"})
 public class ModelingApplication {
 
 	public static void main(String[] args) {

+ 1 - 8
4dkankan-center-scene/src/main/java/com/fdkankan/scene/SceneApplication.java

@@ -12,14 +12,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 @EnableFeignClients("com.fdkankan.*.api.feign")
 @EnableDiscoveryClient
 @EnableScheduling
-@ComponentScan(basePackages = {
-        "com.fdkankan.*"
-//        "com.fdkankan.scene",
-//        "com.fdkankan.redis",
-//        "com.fdkankan.mq",
-//        "com.fdkankan.db",
-//        "com.fdkankan.fyun",
-})
+@ComponentScan(basePackages = {"com.fdkankan.*"})
 @MapperScan("com.fdkankan.**.mapper")
 public class SceneApplication {
     public static void main(String[] args) {