瀏覽代碼

init: 初始化项目

Jaluson 4 天之前
父節點
當前提交
5842ee913a
共有 4 個文件被更改,包括 30 次插入3 次删除
  1. 11 2
      pom.xml
  2. 12 0
      src/main/resources/application-dev.yaml
  3. 0 0
      src/main/resources/application-prod-yaml
  4. 7 1
      src/main/resources/application.yaml

+ 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