Ver Fonte

init: 初始化项目

Jaluson há 4 dias atrás
pai
commit
5842ee913a

+ 11 - 2
pom.xml

@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>3.3.5</version>
+        <version>2.5.15</version>
         <relativePath/> <!-- lookup parent from repository -->
     </parent>
     <groupId>com.sinoqixin</groupId>
@@ -27,7 +27,7 @@
         <url/>
     </scm>
     <properties>
-        <java.version>21</java.version>
+        <java.version>1.8</java.version>
     </properties>
     <dependencies>
         <dependency>
@@ -66,6 +66,15 @@
             <version>3.0.3</version>
             <scope>test</scope>
         </dependency>
+
+        <!-- https://mvnrepository.com/artifact/com.dameng/DmJdbcDriver18 -->
+        <dependency>
+            <groupId>com.dameng</groupId>
+            <artifactId>DmJdbcDriver18</artifactId>
+            <version>8.1.3.140</version>
+        </dependency>
+
+
     </dependencies>
 
     <build>

+ 12 - 0
src/main/resources/application-dev.yaml

@@ -0,0 +1,12 @@
+spring:
+  datasource:
+    driver-class-name: dm.jdbc.driver.DmDriver
+    url: jdbc:dm://localhost:5236
+    username: NWYJ_SERVICE
+    password: NWYJ123456
+    hikari:
+      maximum-pool-size: 50
+      minimum-idle: 5
+      idle-timeout: 30000
+      max-lifetime: 1800000
+      connection-test-query: SELECT 1

+ 0 - 0
src/main/resources/application-prod-yaml


+ 7 - 1
src/main/resources/application.yaml

@@ -1,3 +1,9 @@
+server:
+  servlet:
+    context-path: /bgd-rocketmq
+  port: 9500
 spring:
   application:
-    name: bgd-rocketmq
+    name: bgd-rocketmq
+  profiles:
+    active: dev