Skip to content

Instantly share code, notes, and snippets.

@ivyxjc
Created September 22, 2019 15:26
Show Gist options
  • Select an option

  • Save ivyxjc/7b9ceeaa9298be3a04442263901c686b to your computer and use it in GitHub Desktop.

Select an option

Save ivyxjc/7b9ceeaa9298be3a04442263901c686b to your computer and use it in GitHub Desktop.
mybatis generator config
<?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>
<!-- jdbc drive position -->
<classPathEntry location=""/>
<context id="context" targetRuntime="MyBatis3Simple">
<jdbcConnection connectionURL="" driverClass="" password="" userId="">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="true"/>
</javaTypeResolver>
<javaModelGenerator targetPackage="" targetProject="src/main/java"/>
<sqlMapGenerator targetPackage="" targetProject="src/main/java"/>
<javaClientGenerator type="XMLMAPPER" targetPackage="" targetProject="src/main/java"/>
<table schema="" tableName="" domainObjectName=""/>
</context>
</generatorConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment