| | |
| | | <relativePath>../pom.xml</relativePath> |
| | | </parent> |
| | | |
| | | <artifactId>guns-admin</artifactId> |
| | | <artifactId>driver</artifactId> |
| | | <name>guns-admin</name> |
| | | <version>1.0.0</version> |
| | | <description>guns 的spring boot版本</description> |
| | | |
| | | <packaging>war</packaging> |
| | | <packaging>jar</packaging> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | |
| | | <optional>true</optional> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-tomcat</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | <version>3.1.0</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>org.springframework.boot</groupId>--> |
| | | <!-- <artifactId>spring-boot-starter-tomcat</artifactId>--> |
| | | <!-- <scope>provided</scope>--> |
| | | <!-- </dependency>--> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>javax.servlet</groupId>--> |
| | | <!-- <artifactId>javax.servlet-api</artifactId>--> |
| | | <!-- <version>3.1.0</version>--> |
| | | <!-- <scope>provided</scope>--> |
| | | <!-- </dependency>--> |
| | | |
| | | <!--shiro依赖--> |
| | | <dependency> |
| | |
| | | <build> |
| | | |
| | | <!--打包jar包方式--> |
| | | <!--<plugins>--> |
| | | <!--<plugin>--> |
| | | <!--<groupId>org.springframework.boot</groupId>--> |
| | | <!--<artifactId>spring-boot-maven-plugin</artifactId>--> |
| | | <!--<configuration>--> |
| | | <!--<fork>true</fork><!– 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart –>--> |
| | | <!--</configuration>--> |
| | | <!--</plugin>--> |
| | | <!--</plugins>--> |
| | | |
| | | <!--打包war包引入本地jar的打包方式--> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-war-plugin</artifactId> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <!-- 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 --> |
| | | <failOnMissingWebXml>false</failOnMissingWebXml> |
| | | <!--打包后的项目名--> |
| | | <!--<warName>example</warName>--> |
| | | <webResources> |
| | | <resource> |
| | | <!--把本地lib里面的jar复制到lib--> |
| | | <directory>${project.basedir}/lib</directory> |
| | | <targetPath>WEB-INF/lib/</targetPath> |
| | | <includes> |
| | | <include>**/*.jar</include> |
| | | </includes> |
| | | </resource> |
| | | </webResources> |
| | | <fork>true</fork><!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart --> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | |
| | | <!--打包war包引入本地jar的打包方式--> |
| | | <!-- <plugins>--> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-war-plugin</artifactId>--> |
| | | <!-- <configuration>--> |
| | | <!-- <!– 设置成false,否则检查web.xml是否存在。因为springboot是没有web.xml的 –>--> |
| | | <!-- <failOnMissingWebXml>false</failOnMissingWebXml>--> |
| | | <!-- <!–打包后的项目名–>--> |
| | | <!-- <!–<warName>example</warName>–>--> |
| | | <!-- <webResources>--> |
| | | <!-- <resource>--> |
| | | <!-- <!–把本地lib里面的jar复制到lib–>--> |
| | | <!-- <directory>${project.basedir}/lib</directory>--> |
| | | <!-- <targetPath>WEB-INF/lib/</targetPath>--> |
| | | <!-- <includes>--> |
| | | <!-- <include>**/*.jar</include>--> |
| | | <!-- </includes>--> |
| | | <!-- </resource>--> |
| | | <!-- </webResources>--> |
| | | <!-- </configuration>--> |
| | | <!-- </plugin>--> |
| | | <!-- </plugins>--> |
| | | |
| | | |
| | | <resources> |
| | | <resource> |