Bläddra i källkod

var 包 pom文件修改

pull/1/head
yulin 9 månader sedan
förälder
incheckning
2434da2cad
3 ändrade filer med 52 tillägg och 3 borttagningar
  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 Visa fil

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


<parent>
@@ -50,8 +51,8 @@
<!-- </dependency>-->
<dependency>
<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>
</dependency>
<dependency>
@@ -70,6 +71,18 @@
<artifactId>javase</artifactId>
<version>3.3.3</version>
</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>

@@ -86,6 +99,27 @@
</snapshots>
</pluginRepository>
</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>

+ 15
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/SpringBootStartApplication.java Visa fil

@@ -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 Visa fil

@@ -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:


Laddar…
Avbryt
Spara