IDEA使用mybatis实现generator自动生成MSSQLSERVER数据库表映射,generatorConfig.xml文件中配置如下内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<properties resource="database.properties"></properties>
<classPathEntry location="${dbconfig.sqlServer.driverLocation}" />
<context id="context1" targetRuntime="MyBatis3">
<!--<commentGenerator>
<!– 去除自动生成的注释 –>
<property name="suppressAllComments" value="true" />
</commentGenerator>-->
<!-- 是否生成注释 去除自动生成的注释-->
<commentGenerator>
<property nam