如果为true,则MBG会将进度消息写入构建日志。建议开启,设为true。
```xml
<build>
<plugins>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.7</version>
<configuration>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.19</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
```
值为false时,日志:
```
"C:\Program Files\Java\jdk1.8.0_221\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\zhangpn\IdeaProjects\generator -Dmaven.home=D:\Maven -Dclassworlds.conf=D:\Maven\bin\m2.conf "-Dmaven.ext.class.path=D:\JetBrains\IntelliJ IDEA 2020.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\JetBrains\IntelliJ IDEA 2020.1\lib\idea_rt.jar=57249:D:\JetBrains\IntelliJ IDEA 2020.1\bin" -Dfile.encoding=UTF-8 -classpath D:\Maven\boot\plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version2020.1 -s D:\Maven\conf\settings.xml org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.gosuncn:generator >------------------------
[INFO] Building generator 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- mybatis-generator-maven-plugin:1.3.7:generate (default-cli) @ generator ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.993 s
[INFO] Finished at: 2020-05-02T09:57:56+08:00
[INFO] ------------------------------------------------------------------------
```
值为true时,日志:
```
"C:\Program Files\Java\jdk1.8.0_221\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\zhangpn\IdeaProjects\generator -Dmaven.home=D:\Maven -Dclassworlds.conf=D:\Maven\bin\m2.conf "-Dmaven.ext.class.path=D:\JetBrains\IntelliJ IDEA 2020.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\JetBrains\IntelliJ IDEA 2020.1\lib\idea_rt.jar=57266:D:\JetBrains\IntelliJ IDEA 2020.1\bin" -Dfile.encoding=UTF-8 -classpath D:\Maven\boot\plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version2020.1 -s D:\Maven\conf\settings.xml org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.gosuncn:generator >------------------------
[INFO] Building generator 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- mybatis-generator-maven-plugin:1.3.7:generate (default-cli) @ generator ---
[INFO] Connecting to the Database
[INFO] Introspecting table student
[INFO] Generating Record class for table student
[INFO] Generating Mapper Interface for table student
[INFO] Generating SQL Map for table student
[INFO] Saving file StudentMapper.xml
[INFO] Saving file Student.java
[INFO] Saving file StudentMapper.java
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.473 s
[INFO] Finished at: 2020-05-02T09:59:09+08:00
[INFO] ------------------------------------------------------------------------
```
- springboot使用mybatis
- MyBatis入门
- MyBatis注解方式
- 从零开始MyBatis保存操作
- MyBatis更新操作
- MyBatis删除操作
- MyBatis根据Id查询用户
- MyBatis根据名称模糊查询用户1
- MyBatis根据名称模糊查询用户2
- MyBatis查询总记录条数
- MyBatis获取插入时自增的Id
- MyBatis传参类型
- MyBatis返回值字段不匹配
- MyBatis之properties标签
- MyBatis类型别名typeAliases
- mybatis逆向工程maven之pom配置
- configurationFile
- verbose
- overwrite
- includeCompileDependencies
- includeAllDependencies
- maven之pom配置总结版
- 逆向工程generatorConfig配置