李进 2 tahun lalu
induk
melakukan
fb0988686f

+ 17 - 0
authorize-api-service/pom.xml

@@ -11,11 +11,28 @@
 
     <artifactId>authorize-api-service</artifactId>
 
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <maven.compiler.source>1.8</maven.compiler.source>
+        <maven.compiler.target>1.8</maven.compiler.target>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>com.xy</groupId>
             <artifactId>authorize-api</artifactId>
             <version>1.0</version>
         </dependency>
+
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-redis</artifactId>
+            <version>1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-mp</artifactId>
+            <version>1.0</version>
+        </dependency>
     </dependencies>
 </project>

+ 7 - 1
authorize-api/pom.xml

@@ -11,5 +11,11 @@
 
     <artifactId>authorize-api</artifactId>
 
-
+    <dependencies>
+        <dependency>
+            <groupId>com.xy</groupId>
+            <artifactId>xy-common</artifactId>
+            <version>1.0</version>
+        </dependency>
+    </dependencies>
 </project>

+ 2 - 0
authorize-start/src/main/java/com/xy/StartCloud.java

@@ -1,8 +1,10 @@
 package com.xy;
 
+import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 
 @CloudApplication
+@MapperScan("com.xy.**.mapper")
 public class StartCloud {
 
     public static void main(String[] args) {

+ 4 - 2
authorize-start/src/main/resources/bootstrap.yml

@@ -7,7 +7,9 @@ server:
 
 #微服务相关配置
 cloud:
-  service:
-    name: authorize
   center:
     url: 119.96.213.127:9007
+    config:
+      shared-configs: redis.yaml,mysql.yaml
+  service:
+    name: authorize