Browse Source

var 包 pom文件修改

pull/1/head
yulin 10 months ago
parent
commit
2434da2cad
3 changed files with 52 additions and 3 deletions
  1. +36
    -2
      mztb/pom.xml
  2. +15
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java
  3. +1
    -1
      mztb/src/main/resources/config/application-test.yaml

+ 36
- 2
mztb/pom.xml View File

@@ -12,6 +12,7 @@
<groupId>cc.smtweb</groupId> <groupId>cc.smtweb</groupId>
<artifactId>mztb</artifactId> <artifactId>mztb</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>war</packaging>




<parent> <parent>
@@ -50,8 +51,8 @@
<!-- </dependency>--> <!-- </dependency>-->
<dependency> <dependency>
<groupId>cc.smtweb</groupId> <groupId>cc.smtweb</groupId>
<artifactId>smt-framework-bpm-vue</artifactId>
<!-- <artifactId>smt-framework-bpm-run</artifactId>-->
<!-- <artifactId>smt-framework-bpm-vue</artifactId>-->
<artifactId>smt-framework-bpm-run</artifactId>
<version>1.4.0-SNAPSHOT</version> <version>1.4.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
@@ -70,6 +71,18 @@
<artifactId>javase</artifactId> <artifactId>javase</artifactId>
<version>3.3.3</version> <version>3.3.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${env.JAVA_HOME}\jre\lib\rt.jar</systemPath>
</dependency>


</dependencies> </dependencies>


@@ -86,6 +99,27 @@
</snapshots> </snapshots>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<build>
<finalName>mztb</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
<version>2.6.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>




</project> </project>

+ 15
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java View File

@@ -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);
}
}

+ 1
- 1
mztb/src/main/resources/config/application-test.yaml View File

@@ -54,7 +54,7 @@ spring:
datasource: datasource:
# 测试 # 测试
driver-class-name: com.mysql.cj.jdbc.Driver 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 username: root
password: Ncmz@2022_jjkj password: Ncmz@2022_jjkj
servlet: servlet:


Loading…
Cancel
Save