Skip to main content

Upgrade 1.6.x,1.7.x to 1.8.1

upgrade 1.6.x and 1.7.x to 1.8.1 must to little modification.

Don't upgrade to 1.8.0, because task module have abnormal, please direct upgrade to 1.8.1.

1. Project version upgrade

Modify pom.xml in project app directory, edit version number 1.x.x to 1.8.1

file location: app/pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.xiaoboli.jishi</groupId>
<artifactId>pom</artifactId>
<relativePath>modules/pom/pom.xml</relativePath>

<version>1.8.1</version>

</parent>
<groupId>application</groupId>
<artifactId>app</artifactId>

2. update mysql official package reference

tip

this change apply to use mysql database project, no modify for no-mysql projects.

mysql package name change groupId from mysql to com.mysql, change package name from mysql-connector-java to mysql-connector-j

pom.xml file is under system module

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>

change to

<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>

3. update code generator

Modify generatorConfig.xml in MGP module, if exists other subprojects, synchronous modification subprojects config.xml file.

Add insertSelective configuration item to ServicePlugin plugin

    <plugin type="net.xiaoboli.mgp.ServicePlugin">
.. existing content
<!-- whether use SQL override tk default insertSelective method with SQL, yes/no, default: no -->
<property name="insertSelective" value="yes"/>
</plugin>