From 45a65826ae6052129730e3703d65c8cd156af689 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 07 十月 2023 10:44:29 +0800 Subject: [PATCH] 改为war发布程序 --- pom.xml | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 40 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index cc6dc14..9232fdd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,20 +6,39 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.6.RELEASE</version> - <relativePath/> <!-- lookup parent from repository --> + <relativePath/> </parent> + <packaging>war</packaging> + <groupId>com.smartearth</groupId> <artifactId>poiExcel</artifactId> - <version>0.0.1</version> + <version>0.2</version> <name>poiExcel</name> - <description>poiExcel</description> + <description>PoiExcel</description> + <properties> <java.version>1.8</java.version> </properties> + <dependencies> + <!--spring-boot--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> + <!--鎺掗櫎鍐呯疆tomcat瀹瑰櫒锛岃澶栭儴瀹瑰櫒杩愯spring-boot椤圭洰--> + <exclusions> + <exclusion> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-tomcat</artifactId> + </exclusion> + </exclusions> + </dependency> + <!--war:servlet--> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>javax.servlet-api</artifactId> + <version>3.1.0</version> + <scope>provided</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> @@ -116,6 +135,7 @@ <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> + <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> @@ -137,21 +157,38 @@ <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> + <version>8.0.21</version> </dependency> <!--jdbc--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> + <!--httpclient--> + <dependency> + <groupId>org.apache.httpcomponents</groupId> + <artifactId>httpclient</artifactId> + </dependency> + <!--fast-md5--> + <dependency> + <groupId>com.joyent.util</groupId> + <artifactId>fast-md5</artifactId> + <version>2.7.1</version> + </dependency> </dependencies> <build> + <finalName>PoiExcel</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> + <configuration> + <mainClass>com.smartearth.poiexcel.PoiExcelApplication</mainClass> + </configuration> </plugin> </plugins> </build> + </project> -- Gitblit v1.9.3