mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2025-12-26 05:48:33 +08:00
优化以及更新Maven依赖,减少打包体积
This commit is contained in:
parent
3570a71ab5
commit
f105441d40
@ -16,7 +16,8 @@ SpringBootCodeGenerator
|
|||||||
<tr><td>CSDN博客</td> <td>http://blog.csdn.net/moshowgame</td></tr>
|
<tr><td>CSDN博客</td> <td>http://blog.csdn.net/moshowgame</td></tr>
|
||||||
<tr><td></td> <td></td></tr>
|
<tr><td></td> <td></td></tr>
|
||||||
<tr><td>更新日期</td> <td>更新内容</td></tr>
|
<tr><td>更新日期</td> <td>更新内容</td></tr>
|
||||||
<tr><td>20190910<td>1.修复mapper接口load方法,但是xml中方法不匹配问题 2.移除mapper中CRUD时的@param 注解,会影响xml的解析(感谢@caojiantao的反馈)。3.优化MyBatis的xml文件对Oracle的支持。(感谢@wylove1992的反馈) 4.新增对boolean的处理(感谢@violinxsc的反馈)以及优化tinyint类型生成boolean类型问题(感谢@hahaYhui的反馈) </td></tr>
|
<tr><td>20190910-2<td>优化以及更新Maven依赖,减少打包体积。 </td></tr>
|
||||||
|
<tr><td>20190910-1<td>1.修复mapper接口load方法,但是xml中方法不匹配问题 2.移除mapper中CRUD时的@param 注解,会影响xml的解析(感谢@caojiantao的反馈)。3.优化MyBatis的xml文件对Oracle的支持。(感谢@wylove1992的反馈) 4.新增对boolean的处理(感谢@violinxsc的反馈)以及优化tinyint类型生成boolean类型问题(感谢@hahaYhui的反馈) </td></tr>
|
||||||
<tr><td>20190909<td>添加是否下划线转换为驼峰的选择(感谢@youngking28 的pull request)。</td></tr>
|
<tr><td>20190909<td>添加是否下划线转换为驼峰的选择(感谢@youngking28 的pull request)。</td></tr>
|
||||||
<tr><td>20190518<td>1.优化注释 2.修改 mybatis模板中 controller注解 3.修改 mybatis模板中 dao文件使用为 mapper文件 4.修改 mybatis模板中 service实现类中的一个 bug 5.修改 index.ftl文件中 mybatis模板的 dao -> mapper(感谢@unqin的pull request)</td></tr>
|
<tr><td>20190518<td>1.优化注释 2.修改 mybatis模板中 controller注解 3.修改 mybatis模板中 dao文件使用为 mapper文件 4.修改 mybatis模板中 service实现类中的一个 bug 5.修改 index.ftl文件中 mybatis模板的 dao -> mapper(感谢@unqin的pull request)</td></tr>
|
||||||
<tr><td>20190511<td>优化mybatis模块的dao和xml模板,修改dao接口注解为@Repository,所有dao参数改为包装类,删除update语句最后的UpdateTime = NOW(),修改dao接口文件的方法注释使其更符合javaDoc的标准,修改insert语句增加插入行主键的返回,修改load的方法名为selectByPrimaryKey,修改xml的update语句新增动态if判空,修改xml的insert语句新增动态插入判空,更符合mybatisGenerator标准(感谢@Archer-Wen的贡献 )。</td></tr>
|
<tr><td>20190511<td>优化mybatis模块的dao和xml模板,修改dao接口注解为@Repository,所有dao参数改为包装类,删除update语句最后的UpdateTime = NOW(),修改dao接口文件的方法注释使其更符合javaDoc的标准,修改insert语句增加插入行主键的返回,修改load的方法名为selectByPrimaryKey,修改xml的update语句新增动态if判空,修改xml的insert语句新增动态插入判空,更符合mybatisGenerator标准(感谢@Archer-Wen的贡献 )。</td></tr>
|
||||||
|
|||||||
434
pom.xml
434
pom.xml
@ -1,234 +1,200 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.softdev.system</groupId>
|
<groupId>com.softdev.system</groupId>
|
||||||
<artifactId>SpringBootCodeGenerator</artifactId>
|
<artifactId>SpringBootCodeGenerator</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>2.0.4.RELEASE</version>
|
<version>2.1.7.RELEASE</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>generator-web</module>
|
<module>generator-web</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- 指定编码 -->
|
<!-- 指定编码 -->
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<!-- 指定jdk版本 -->
|
<!-- 指定jdk版本 -->
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
||||||
<groupId>com.alibaba</groupId>
|
<dependency>
|
||||||
<artifactId>fastjson</artifactId>
|
<groupId>com.alibaba</groupId>
|
||||||
<version>1.2.44</version>
|
<artifactId>fastjson</artifactId>
|
||||||
</dependency>
|
<version>1.2.60</version>
|
||||||
|
</dependency>
|
||||||
<!-- 支持 @ConfigurationProperties 注解 -->
|
|
||||||
<dependency>
|
<!-- 支持 @ConfigurationProperties 注解 -->
|
||||||
<groupId>org.springframework.boot</groupId>
|
<dependency>
|
||||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<optional>true</optional>
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||||
</dependency>
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
<!-- spring-boot-devtools依赖包 -->
|
|
||||||
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
|
<!-- spring-boot-devtools依赖包 -->
|
||||||
<dependency>
|
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
|
||||||
<groupId>org.springframework.boot</groupId>
|
<!--<dependency>
|
||||||
<artifactId>spring-boot-devtools</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<version>2.0.4.RELEASE</version>
|
<artifactId>spring-boot-devtools</artifactId>
|
||||||
</dependency>
|
<version>2.0.4.RELEASE</version>
|
||||||
|
</dependency>-->
|
||||||
<!-- spring热部署 -->
|
|
||||||
<dependency>
|
<!-- spring热部署 -->
|
||||||
<groupId>org.springframework</groupId>
|
<!--<dependency>
|
||||||
<artifactId>springloaded</artifactId>
|
<groupId>org.springframework</groupId>
|
||||||
<version>1.2.8.RELEASE</version>
|
<artifactId>springloaded</artifactId>
|
||||||
</dependency>
|
<version>1.2.8.RELEASE</version>
|
||||||
|
</dependency>-->
|
||||||
|
|
||||||
<!-- Hutool超级工具类 http://hutool.mydoc.io/ -->
|
<!-- Hutool超级工具类 http://hutool.mydoc.io/ -->
|
||||||
<dependency>
|
<!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
|
||||||
<groupId>cn.hutool</groupId>
|
<dependency>
|
||||||
<artifactId>hutool-all</artifactId>
|
<groupId>cn.hutool</groupId>
|
||||||
<version>4.1.12</version>
|
<artifactId>hutool-all</artifactId>
|
||||||
</dependency>
|
<version>4.6.1</version>
|
||||||
|
</dependency>
|
||||||
<!-- lombok -->
|
|
||||||
<dependency>
|
<!-- lombok -->
|
||||||
<groupId>org.projectlombok</groupId>
|
<dependency>
|
||||||
<artifactId>lombok</artifactId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<version>1.18.2</version>
|
<artifactId>lombok</artifactId>
|
||||||
</dependency>
|
<version>1.18.8</version>
|
||||||
|
</dependency>
|
||||||
<!-- mysql -->
|
|
||||||
<!--<dependency>
|
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
|
||||||
<groupId>mysql</groupId>
|
<dependency>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<groupId>org.apache.commons</groupId>
|
||||||
</dependency>-->
|
<artifactId>commons-lang3</artifactId>
|
||||||
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
|
<version>3.8</version>
|
||||||
<!-- <dependency>
|
</dependency>
|
||||||
<groupId>org.postgresql</groupId>
|
|
||||||
<artifactId>postgresql</artifactId>
|
<!-- freemarker -->
|
||||||
</dependency> -->
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
<dependency>
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||||||
<groupId>com.alibaba</groupId>
|
</dependency>
|
||||||
<artifactId>druid</artifactId>
|
|
||||||
<version>1.1.3</version>
|
<!-- java.lang.ClassNotFoundException: javax.xml.bind.JAXBException/javax.xml.bind.annotation.XmlType问题解决 -->
|
||||||
</dependency>
|
<!--<dependency>
|
||||||
|
<groupId>javax.xml.bind</groupId>
|
||||||
<dependency>
|
<artifactId>jaxb-api</artifactId>
|
||||||
<groupId>log4j</groupId>
|
<version>2.3.0</version>
|
||||||
<artifactId>log4j</artifactId>
|
</dependency>
|
||||||
<version>1.2.16</version>
|
<dependency>
|
||||||
</dependency>
|
<groupId>com.sun.xml.bind</groupId>
|
||||||
|
<artifactId>jaxb-impl</artifactId>
|
||||||
<!-- junit -->
|
<version>2.3.0</version>
|
||||||
<dependency>
|
</dependency>
|
||||||
<groupId>junit</groupId>
|
<dependency>
|
||||||
<artifactId>junit</artifactId>
|
<groupId>com.sun.xml.bind</groupId>
|
||||||
<scope>test</scope>
|
<artifactId>jaxb-core</artifactId>
|
||||||
</dependency>
|
<version>2.3.0</version>
|
||||||
|
</dependency>
|
||||||
<!-- <dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>javax.activation</groupId>
|
||||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
<artifactId>activation</artifactId>
|
||||||
</dependency> -->
|
<version>1.1.1</version>
|
||||||
|
</dependency>-->
|
||||||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
|
|
||||||
<dependency>
|
</dependencies>
|
||||||
<groupId>org.apache.commons</groupId>
|
|
||||||
<artifactId>commons-lang3</artifactId>
|
|
||||||
<version>3.8</version>
|
<build>
|
||||||
</dependency>
|
<!--解决idea打包没有xml-->
|
||||||
|
<resources>
|
||||||
<!-- freemarker -->
|
<resource>
|
||||||
<dependency>
|
<directory>src/main/java</directory>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<includes>
|
||||||
<artifactId>spring-boot-starter-freemarker</artifactId>
|
<include>**/*.properties</include>
|
||||||
</dependency>
|
<include>**/*.xml</include>
|
||||||
|
</includes>
|
||||||
<!-- java.lang.ClassNotFoundException: javax.xml.bind.JAXBException/javax.xml.bind.annotation.XmlType问题解决 -->
|
<filtering>false</filtering>
|
||||||
<dependency>
|
</resource>
|
||||||
<groupId>javax.xml.bind</groupId>
|
<resource>
|
||||||
<artifactId>jaxb-api</artifactId>
|
<directory>src/main/resources</directory>
|
||||||
<version>2.3.0</version>
|
</resource>
|
||||||
</dependency>
|
</resources>
|
||||||
<dependency>
|
<plugins>
|
||||||
<groupId>com.sun.xml.bind</groupId>
|
<plugin>
|
||||||
<artifactId>jaxb-impl</artifactId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<version>2.3.0</version>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
</dependency>
|
<version>3.1</version>
|
||||||
<dependency>
|
<configuration>
|
||||||
<groupId>com.sun.xml.bind</groupId>
|
<skip>true</skip>
|
||||||
<artifactId>jaxb-core</artifactId>
|
<compilerId>javac</compilerId>
|
||||||
<version>2.3.0</version>
|
<source>1.8</source>
|
||||||
</dependency>
|
<target>1.8</target>
|
||||||
<dependency>
|
<encoding>UTF-8</encoding>
|
||||||
<groupId>javax.activation</groupId>
|
<compilerVersion>1.8</compilerVersion>
|
||||||
<artifactId>activation</artifactId>
|
<verbose>true</verbose>
|
||||||
<version>1.1.1</version>
|
<optimize>true</optimize>
|
||||||
</dependency>
|
</configuration>
|
||||||
|
<dependencies>
|
||||||
</dependencies>
|
<dependency>
|
||||||
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
<artifactId>plexus-compiler-eclipse</artifactId>
|
||||||
<build>
|
<version>2.2</version>
|
||||||
<!--解决idea打包没有xml-->
|
</dependency>
|
||||||
<resources>
|
</dependencies>
|
||||||
<resource>
|
</plugin>
|
||||||
<directory>src/main/java</directory>
|
<plugin>
|
||||||
<includes>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<include>**/*.properties</include>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<include>**/*.xml</include>
|
<version>3.0.1</version>
|
||||||
</includes>
|
<configuration>
|
||||||
<filtering>false</filtering>
|
<!--<failOnMissingWebXml>false</failOnMissingWebXml>-->
|
||||||
</resource>
|
<includeEmptyDirs>true</includeEmptyDirs>
|
||||||
<resource>
|
</configuration>
|
||||||
<directory>src/main/resources</directory>
|
</plugin>
|
||||||
</resource>
|
<plugin>
|
||||||
</resources>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<plugins>
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
<plugin>
|
<version>2.1.1</version>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<configuration>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
<version>3.1</version>
|
<warSourceExcludes>upload/**</warSourceExcludes>
|
||||||
<configuration>
|
</configuration>
|
||||||
<skip>true</skip>
|
</plugin>
|
||||||
<compilerId>javac</compilerId>
|
<plugin>
|
||||||
<source>1.8</source>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<target>1.8</target>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<encoding>UTF-8</encoding>
|
<version>2.0.4.RELEASE</version>
|
||||||
<compilerVersion>1.8</compilerVersion>
|
<executions>
|
||||||
<verbose>true</verbose>
|
<execution>
|
||||||
<optimize>true</optimize>
|
<goals>
|
||||||
</configuration>
|
<goal>repackage</goal>
|
||||||
<dependencies>
|
</goals>
|
||||||
<dependency>
|
</execution>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
</executions>
|
||||||
<artifactId>plexus-compiler-eclipse</artifactId>
|
</plugin>
|
||||||
<version>2.2</version>
|
</plugins>
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</build>
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<repositories>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<repository>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<id>spring-milestones</id>
|
||||||
<version>3.0.1</version>
|
<name>Spring Milestones</name>
|
||||||
<configuration>
|
<url>https://repo.spring.io/libs-milestone</url>
|
||||||
<!--<failOnMissingWebXml>false</failOnMissingWebXml>-->
|
<snapshots>
|
||||||
<includeEmptyDirs>true</includeEmptyDirs>
|
<enabled>false</enabled>
|
||||||
</configuration>
|
</snapshots>
|
||||||
</plugin>
|
</repository>
|
||||||
<plugin>
|
</repositories>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
</project>
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
|
||||||
<version>2.1.1</version>
|
|
||||||
<configuration>
|
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
||||||
<warSourceExcludes>upload/**</warSourceExcludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<version>2.0.4.RELEASE</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>repackage</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>https://repo.spring.io/libs-milestone</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
</project>
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user