<?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>
<classPathEntry
location="mysql-connector-java-commercial-5.1.25-bin.jar" />
<context id="context1">
<commentGenerator>
<property name="suppressDate" value="true" />
<property name="suppressAllComments" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://192.168.47.196:3306/test"
userId="root" password="123456">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="cn.java.entity"
targetProject="D:\TOOL\soft_java\dm" />
<sqlMapGenerator targetPackage="cn.java.service"
targetProject="D:\TOOL\soft_java\dm" />
<javaClientGenerator targetPackage="cn.java.service.impl"
targetProject="D:\TOOL\soft_java\dm" type="XMLMAPPER">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<table tableName="computers" domainObjectName="computers" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
</context>
</generatorConfiguration>
mybatis中java自动化生成dao层简单实用
原创文章标签 mybatis中java自动化生成dao 文章分类 Java 后端开发
©著作权归作者所有:来自51CTO博客作者知止内明的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
JAVA使用JMeter API进行简单的自动化测试示例
JMeterAPI 自动化测试
测试计划 初始化 HTTPS -
java代码自动化生成 java自动编程
Java自动化测试
java代码自动化生成 多行注释 Java 首字母