From 2434da2cad95695d824751036e03a8599ee4f32c Mon Sep 17 00:00:00 2001
From: yulin <240160934@qq.com>
Date: Mon, 15 Jan 2024 17:15:24 +0800
Subject: [PATCH] =?UTF-8?q?var=20=E5=8C=85=20pom=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mztb/pom.xml | 38 ++++++++++++++++++++--
.../biz/mztb/SpringBootStartApplication.java | 15 +++++++++
.../main/resources/config/application-test.yaml | 2 +-
3 files changed, 52 insertions(+), 3 deletions(-)
create mode 100644 mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java
diff --git a/mztb/pom.xml b/mztb/pom.xml
index 1e0b1b2..aff2a74 100644
--- a/mztb/pom.xml
+++ b/mztb/pom.xml
@@ -12,6 +12,7 @@
cc.smtweb
mztb
1.0-SNAPSHOT
+ war
@@ -50,8 +51,8 @@
cc.smtweb
- smt-framework-bpm-vue
-
+
+ smt-framework-bpm-run
1.4.0-SNAPSHOT
@@ -70,6 +71,18 @@
javase
3.3.3
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ provided
+
+
+ com.sun
+ rt
+ system
+ 1.0
+ ${env.JAVA_HOME}\jre\lib\rt.jar
+
@@ -86,6 +99,27 @@
+
+ mztb
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ true
+
+ 2.6.2
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.16
+
+ true
+
+
+
+
\ No newline at end of file
diff --git a/mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java b/mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java
new file mode 100644
index 0000000..1bab22e
--- /dev/null
+++ b/mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java
@@ -0,0 +1,15 @@
+package cc.smtweb.biz.mztb;
+
+
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@EnableScheduling
+public class SpringBootStartApplication extends SpringBootServletInitializer {
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
+ return builder.sources(MztbApplication.class);
+ }
+}
diff --git a/mztb/src/main/resources/config/application-test.yaml b/mztb/src/main/resources/config/application-test.yaml
index 0074b5c..078bd3d 100644
--- a/mztb/src/main/resources/config/application-test.yaml
+++ b/mztb/src/main/resources/config/application-test.yaml
@@ -54,7 +54,7 @@ spring:
datasource:
# 测试
driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://192.168.110.210:4418/mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
+ url: jdbc:mysql://192.168.110.210:4418/ts_mztb?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: Ncmz@2022_jjkj
servlet: