Sfoglia il codice sorgente

feat: pom添加阿里云配置

wuwenyi 2 settimane fa
parent
commit
f4ed00ce79
2 ha cambiato i file con 22 aggiunte e 3 eliminazioni
  1. 14 0
      pom.xml
  2. 8 3
      src/main/resources/application-test.yml

+ 14 - 0
pom.xml

@@ -127,4 +127,18 @@
             </plugin>
             </plugin>
         </plugins>
         </plugins>
     </build>
     </build>
+
+    <repositories>
+        <repository>
+            <id>aliyun</id>
+            <url>https://maven.aliyun.com/repository/public</url>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>aliyun</id>
+            <url>https://maven.aliyun.com/repository/public</url>
+        </pluginRepository>
+    </pluginRepositories>
 </project>
 </project>

+ 8 - 3
src/main/resources/application-test.yml

@@ -1,14 +1,19 @@
 spring:
 spring:
   datasource:
   datasource:
-    url: jdbc:mysql://localhost:3306/qqflowengine_test?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai&createDatabaseIfNotExist=true
+    url: jdbc:mysql://192.168.1.139:3306/qqflowengine?useUnicode=true&characterEncoding=utf8mb4&serverTimezone=Asia/Shanghai
     driver-class-name: com.mysql.cj.jdbc.Driver
     driver-class-name: com.mysql.cj.jdbc.Driver
-    username: root
-    password: root
+    username: qqflowengine
+    password: 123456
   sql:
   sql:
     init:
     init:
       mode: always
       mode: always
       schema-locations: classpath:schema-test.sql
       schema-locations: classpath:schema-test.sql
       data-locations: classpath:data-test.sql
       data-locations: classpath:data-test.sql
+  data:
+    redis:
+      host: 192.168.1.139
+      port: 6379
+      password: redis123456
 
 
 mybatis-plus:
 mybatis-plus:
   mapper-locations: classpath*:/mapper/**/*.xml
   mapper-locations: classpath*:/mapper/**/*.xml