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: