代码拉取完成,页面将自动刷新
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yifushidai</groupId>
<artifactId>shisu</artifactId>
<!--<artifactId>api</artifactId>-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/>
</parent>
<properties>
<swagger.version>2.8.0</swagger.version>
<druid.version>1.1.5</druid.version><!--1.1.5 1.0.29-->
<mysql-driver.version>5.1.39</mysql-driver.version>
<mybatis-spring-boot-starter.version>1.2.0</mybatis-spring-boot-starter.version>
<mybatis-generator-maven-plugin.version>1.3.5</mybatis-generator-maven-plugin.version>
<fastjson-version>1.2.30</fastjson-version>
<commons-lang.version>2.6</commons-lang.version>
<commons-lang3.version>3.3.2</commons-lang3.version>
<junit.version>4.12</junit.version>
<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
<xinge.version>1.1.8</xinge.version>
<spring-boot-starter-log4j.version>1.3.5.RELEASE</spring-boot-starter-log4j.version>
<kaptcha-version>0.0.9</kaptcha-version>
<velocity-version>1.7</velocity-version>
<velocity-tools-version>2.0</velocity-tools-version>
<jstl-version>1.2</jstl-version>
<taglibs-version>1.1.2</taglibs-version>
<freemarker-version>2.3.23</freemarker-version>
<hibernate-validator-version>5.4.1.Final</hibernate-validator-version>
<slf4j-version>1.7.19</slf4j-version>
<log4j-version>1.2.17</log4j-version>
<!--<shiro-version>1.3.2</shiro-version>-->
<docker.image.prefix>liumeidocker5</docker.image.prefix>
<!-- environment setting -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!--spring-boot web 依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- redis-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!--部署成war包时开启↓↓↓↓-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
<!--<scope>provided</scope>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.tomcat.embed</groupId>-->
<!--<artifactId>tomcat-embed-jasper</artifactId>-->
<!--<scope>compile</scope><!–compile:编译依赖范围。jar包运行需要compile–>-->
<!--</dependency>-->
<!--部署成war包时开启↑↑↑↑-->
<!--spring-boot 相关组件-->
<!--springboot 热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!--junit 单元测试-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>provided</scope>
</dependency>
<!--swagger2依赖-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version>
</dependency>
<!-- 鉴权 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/com.github.xiaoymin/swagger-bootstrap-ui -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>1.9.0</version>
</dependency>
<!-- fastjson-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson-version}</version>
</dependency>
<!--mybatis spring-boot -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<!--druid连接池依赖-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.6</version>
</dependency>
<!-- mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.44</version>
</dependency>
<!--通用mapper-->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>1.1.5</version>
</dependency>
<!--pagehelper-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
<!--图片验证码-->
<dependency>
<groupId>com.github.axet</groupId>
<artifactId>kaptcha</artifactId>
<version>${kaptcha-version}</version>
</dependency>
<!-- 校验工具-->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator-version}</version>
</dependency>
<!-- GENERAL UTILS begin -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons-lang.version}</version>
</dependency>
<!--<dependency>-->
<!--<groupId>org.apache.commons</groupId>-->
<!--<artifactId>commons-lang3</artifactId>-->
<!--<version>${commons-lang3.version}</version>-->
<!--</dependency>-->
<!-- 本地信鸽推送-->
<!--<dependency>-->
<!--<groupId>com.github.xingePush</groupId>-->
<!--<artifactId>xinge</artifactId>-->
<!--<version>${xinge.version}</version>-->
<!--</dependency>-->
<!--极光推送-->
<dependency>
<groupId>cn.jpush.api</groupId>
<artifactId>jpush-client</artifactId>
<version>3.3.0</version>
</dependency>
<!-- mina-->
<dependency>
<groupId>org.apache.mina</groupId>
<artifactId>mina-core</artifactId>
<version>2.0.16</version>
</dependency>
<!--<!– 添加POI excel –>-->
<!--<dependency>-->
<!--<groupId>org.apache.poi</groupId>-->
<!--<artifactId>poi</artifactId>-->
<!--<version>3.16</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.poi</groupId>-->
<!--<artifactId>poi-ooxml</artifactId>-->
<!--<version>3.16</version>-->
<!--</dependency>-->
<!--<!– 添加iText 写pdf –>-->
<!--<dependency>-->
<!--<groupId>com.lowagie</groupId>-->
<!--<artifactId>itext</artifactId>-->
<!--<version>4.2.1</version>-->
<!--</dependency>-->
<!--<!–shiro–>-->
<!--<dependency>-->
<!--<groupId>org.apache.shiro</groupId>-->
<!--<artifactId>shiro-core</artifactId>-->
<!--<version>1.4.0</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.shiro</groupId>-->
<!--<artifactId>shiro-spring</artifactId>-->
<!--<version>1.4.0</version>-->
<!--</dependency>-->
<!-- https://mvnrepository.com/artifact/com.google.zxing/core -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.zxing/javase -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.2</version>
</dependency>
<!--<dependency>-->
<!--<groupId>com.sun.jna</groupId>-->
<!--<artifactId>jna</artifactId>-->
<!--<version>3.0.9</version>-->
<!--</dependency>-->
<!--aliyunOSS-->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<!--此时打成的包的名称应该和application.properties的server.context-path=/spring-boot保持一致-->
<finalName>${project.artifactId}</finalName>
<!--<resources>-->
<!--<!–静态资源过滤问题 ,src/main/resources 默认全部不过滤–>-->
<!--<resource>-->
<!--<directory>src/main/resources</directory>-->
<!--<!–过滤掉证书文件 后缀格式有哪些??混乱–>-->
<!--<filtering>false</filtering>-->
<!--<includes>-->
<!--<include>*.p12</include>-->
<!--<include>*.cer</include>-->
<!--<include>*.crt</include>-->
<!--<include>*.pem</include>-->
<!--<include>*.key</include>-->
<!--<include>*.pfx</include>-->
<!--</includes>-->
<!--</resource>-->
<!--<resource>-->
<!--<directory>src/main/resources</directory>-->
<!--<filtering>true</filtering>-->
<!--<includes>-->
<!--<include>com/yifushidai/mapper/*</include>-->
<!--<include>config/*</include>-->
<!--<include>application.properties</include>-->
<!--<!–在Maven Project视图中指定profile就不会爆红了,在打包中使用mvn clean package -Dmaven.test.skip=true -P product,-p用来指定打包的profile–>-->
<!--<!–mvn clean package -P local–>-->
<!--<include>application-${environment}.properties</include>-->
<!--</includes>-->
<!--</resource>-->
<!--<!–src/main/java默认编译java文件,不包含静态资源, 此处配置src/main/java下编译静态资源,则src/main/resources 失效?–>-->
<!--</resources>-->
<!--默认情况下,Maven属性只有在POM中才会被解析。资源过滤就是指让Maven属性在资源文件(src/main/resources、src/test/resources)中也能被解析。-->
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<!--spring-boot为了保护application.yml和application.properties,修改了默认的占位符${...}为@...@-->
<!--为了spring boot的yml和properties文件能够使用maven变量替换,使用${}占位符-->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>utf-8</encoding>
<useDefaultDelimiters>true</useDefaultDelimiters>
</configuration>
</plugin>
<!--maven 编译插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- 跳过单元测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<forkMode>once</forkMode>
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
</configuration>
</plugin>
<!-- spring-boot 的maven插件 single jar-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
<fork>true</fork><!-- fork : 如果没有该项配置则devtools不会起作用,即应用不会restart-->
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!--maven war包插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<!--<version>2.1.1</version><!–3.0.0的插件 web.xml不存在问题–>-->
<configuration>
<webappDirectory>${project.build.directory}</webappDirectory><!-- 指定webapp 打包路径-->
<failOnMissingWebXml>false</failOnMissingWebXml><!--忽略没有web.xml打包报错-->
<!--<warName>rent-v0.02</warName><!–指定war打包名称–>-->
</configuration>
</plugin>
<!-- mybatis generator 插件 -->
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<dependencies>
<!--配置这个依赖主要是为了等下在配置mybatis-generator.xml的时候可以不用配置classPathEntry这样的一个属性,避免代码的耦合度太高-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.44</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>3.4.0</version>
</dependency>
</dependencies>
<configuration>
<configurationFile>src/main/resources/config/mybatis-generator.xml</configurationFile>
<verbose>false</verbose>
<overwrite>true</overwrite>
</configuration>
</plugin>
<!--<!–Spotify 的 docker-maven-plugin 插件是用于构建 Maven 的 Docker Image–>-->
<!--<!–imageName指定了镜像的名字,本例为 waylau/docker-spring-boot-->
<!--${docker.image.prefix} 为你在 docker官方仓库的用户名,如果你不需要上传镜像,随便填。-->
<!--dockerDirectory指定 Dockerfile 的位置-->
<!--resources是指那些需要和 Dockerfile 放在一起,在构建镜像时使用的文件,一般应用 jar 包需要纳入。本例,只需一个 jar 文件。–>-->
<!--<!– <plugin>-->
<!--<groupId>com.spotify</groupId>-->
<!--<artifactId>docker-maven-plugin</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<configuration>-->
<!--<dockerHost>http://192.168.0.121:2375</dockerHost><!–远程服务器地址–>-->
<!--<!–<dockerHost>https://120.76.251.96:2376</dockerHost>–>-->
<!--<!–<dockerCertPath>C:\Users\Administrator\.docker\machine\machines\default</dockerCertPath>–><!–若远程服务器为https,则需添加证书–>-->
<!--<imageName>${docker.image.prefix}/${project.artifactId}</imageName> <!–lock/per-wifi–><!–${docker.image.prefix}/${project.artifactId}–>-->
<!--<dockerDirectory>src/main/docker</dockerDirectory>-->
<!--<!–简单的免 dockerFile 创建image–>-->
<!--<!–<baseImage>java:8</baseImage>–><!–centos–>-->
<!--<!–<volumes>/tmp</volumes>–>-->
<!--<!–<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>–>-->
<!--<resources>-->
<!--<resource>-->
<!--<targetPath>/</targetPath>-->
<!--<directory>${project.build.directory}</directory>-->
<!--<include>/rent-v0.02.war</include>-->
<!--</resource>-->
<!--</resources>-->
<!--<!– 以下两行是为了docker push到DockerHub使用的。 –>-->
<!--<serverId>docker-hub</serverId>-->
<!--</configuration>-->
<!--</plugin>–>-->
</plugins>
</build>
<!--生产环境-->
<profiles>
<profile>
<id>dev</id>
<properties>
<environment>dev</environment>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<environment>prod</environment>
</properties>
</profile>
</profiles>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。