소스 검색

bug提交 admin的扫描路径修改

张均强 4 년 전
부모
커밋
6a61afd36b
4개의 변경된 파일16개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 5
      modules/admin/src/main/java/com/fire/admin/AdminApplication.java
  2. 5 1
      modules/make-order/src/main/resources/bootstrap.yml
  3. 4 0
      modules/pom.xml
  4. 5 1
      pom.xml

+ 2 - 5
modules/admin/src/main/java/com/fire/admin/AdminApplication.java

@@ -5,15 +5,12 @@ import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.ComponentScans;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
 
-@SpringBootApplication(scanBasePackages = {"com.fire.*","com.fire.admin","com.fire.common"})
+@SpringBootApplication(scanBasePackages = {"com.fire.dto", "com.fire.admin", "com.fire.common"})
 @EnableDiscoveryClient
-@MapperScan({"com.fire.admin.mapper","com.fire.admin.repository"})
+@MapperScan({"com.fire.admin.mapper"})
 @EnableTransactionManagement(proxyTargetClass = true)
-@ComponentScans(value = {@ComponentScan("com.fire.dto.system"),@ComponentScan("com.fire.admin.*")})
 @EnableSwagger2Doc
 public class AdminApplication {
 

+ 5 - 1
modules/make-order/src/main/resources/bootstrap.yml

@@ -15,4 +15,8 @@ spring:
         service: make-order
   redis:
     cluster:
-      nodes: 192.168.101.101:7001,192.168.101.101:7002,192.168.101.101:7003
+      nodes: 192.168.101.101:7001,192.168.101.101:7002,192.168.101.101:7003
+rocketmq:
+  name-server: 192.168.101.12:9876
+  producer:
+    group: make-order

+ 4 - 0
modules/pom.xml

@@ -51,6 +51,10 @@
             <groupId>redis.clients</groupId>
             <artifactId>jedis</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.rocketmq</groupId>
+            <artifactId>rocketmq-spring-boot-starter</artifactId>
+        </dependency>
         <!--这里引入本地公共的类-->
         <dependency>
             <groupId>com.blue</groupId>

+ 5 - 1
pom.xml

@@ -67,7 +67,11 @@
                 <artifactId>fastjson</artifactId>
                 <version>1.2.9</version>
             </dependency>
-
+            <dependency>
+                <groupId>org.apache.rocketmq</groupId>
+                <artifactId>rocketmq-spring-boot-starter</artifactId>
+                <version>2.2.0</version>
+            </dependency>
             <dependency>
                 <groupId>org.projectlombok</groupId>
                 <artifactId>lombok</artifactId>