web123456

IDEA uses mybatis to implement generator to automatically generate MSSQLSERVER database table mapping

  • <?xml version="1.0" encoding="UTF-8"?>
  • <!DOCTYPE generatorConfiguration
  • PUBLIC "-////DTD MyBatis Generator Configuration 1.0//EN"
  • "/dtd/mybatis-generator-config_1_0.dtd">
  • <generatorConfiguration>
  • <properties resource=""></properties>
  • <classPathEntry location="${}" />
  • <context id="context1" targetRuntime="MyBatis3">
  • <!--<commentGenerator>
  • <!- ​​Remove automatically generated comments –>
  • <property name="suppressAllComments" value="true" />
  • </commentGenerator>-->
  • <!-- Whether to generate comments Remove automatically generated comments-->
  • <commentGenerator>
  • <property name="suppressDate" value="true"/>
  • <property name="suppressAllComments" value="true"/>
  • </commentGenerator>
  • <!-- Database Connection Configuration -->
  • <jdbcConnection driverClass=""
  • connectionURL="jdbc:sqlserver://127.0.0.1;DatabaseName=airport_etc"
  • userId="airportetc"
  • password="airportetc"/>
  • <!-- Non-essential, type processor, conversion control between database type and java type-->
  • <javaTypeResolver>
  • <property name="forceBigDecimals" value="false"/>
  • </javaTypeResolver>
  • <!--Configure the generated entity package
  • targetPackage: The generated entity package location, stored in the src directory by default
  • targetProject: target project name
  • -->
  • <javaModelGenerator targetPackage=""
  • targetProject="${}/dclot-etc-srv/src/main/java" />
  • <!-- The corresponding mapping file location and name of the entity package, which is stored in the src directory by default -->
  • <sqlMapGenerator targetPackage="mappers" targetProject="${}/dclot-etc-srv/src/main/resources" />
  • <!--Generate the storage location of the Dao class-->
  • <javaClientGenerator type="xmlmapper" targetPackage="" targetProject="${}/dclot-etc-srv/src/main/java">
  • <property name="enableSubPackages" value="true"/>
  • </javaClientGenerator>
  • <!--Generate corresponding table and class name-->
  • <!-- Configuration table
  • schema: No need to fill in
  • tableName: table name
  • enableCountByExample、enableSelectByExample、enableDeleteByExample、enableUpdateByExample、selectByExampleQueryId:
  • Remove automatic generated examples
  • -->
  • <table catalog="" schema="" tableName="sys_parklot" domainObjectName="SysParklot"></table>
  • </context>
  • </generatorConfiguration>