mybatis链接mysql8.0以上版本数据库的逆向工程配置
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mybatis链接mysql8.0以上版本数据库的逆向工程配置,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3853字,纯文字阅读大概需要6分钟。
内容图文
![mybatis链接mysql8.0以上版本数据库的逆向工程配置](/upload/InfoBanner/zyjiaocheng/510/67dfb28d3f7c40519480315f62f84491.jpg)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> 3 <generatorConfiguration> 4 <context id="context1"> 5 <!-- 注释构建 --> 6 <commentGenerator> 7 <!-- 去掉所有的注释 --> 8 <property name="suppressAllComments" value="true"/> 9 <property name="suppressDate" value="true"/> 10 </commentGenerator> 11 12 <!-- 数据库四要素 --> 13 <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/gz_logistics?serverTimezone=UTC&characterEncoding=utf-8&useSSL=false" driverClass="com.mysql.cj.jdbc.Driver" password="myroot" userId="root" /> 14 <!-- 实体类 --> 15 <javaModelGenerator targetPackage="top.abcdit.gzlogistics.pojo" targetProject="mybatis-generator/src" /> 16 <!-- 映射文件 --> 17 <sqlMapGenerator targetPackage="top.abcdit.gzlogistics.mapper" targetProject="mybatis-generator/src" /> 18 19 <!-- ANNOTATEDMAPPER 20 XMLMAPPER 21 --> 22 23 <!-- 操作接口 --> 24 <javaClientGenerator targetPackage="top.abcdit.gzlogistics.mapper" targetProject="mybatis-generator/src" type="XMLMAPPER" /> 25 <table tableName="tb_user" domainObjectName="Tb_user" enableCountByExample="true" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> 26 <table tableName="r_role" domainObjectName="R_role" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> 27 <table tableName="P_permission" domainObjectName="P_permission" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> 28 </context> 29 </generatorConfiguration>
或者
<?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> <context id="context1"> <!-- 注释构建 --> <commentGenerator> <!-- 去掉所有的注释 --> <property name="suppressAllComments" value="true"/> <property name="suppressDate" value="true"/> </commentGenerator> <!-- 数据库四要素 --> <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/gz_logistics?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT&nullCatalogMeansCurrent = true"
driverClass="com.mysql.cj.jdbc.Driver" password="myroot" userId="root" /> <!-- 实体类 --> <javaModelGenerator targetPackage="top.abcdit.gzlogistics.pojo" targetProject="mybatis-generator/src" /> <!-- 映射文件 --> <sqlMapGenerator targetPackage="top.abcdit.gzlogistics.mapper" targetProject="mybatis-generator/src" /> <!-- ANNOTATEDMAPPER XMLMAPPER --> <!-- 操作接口 --> <javaClientGenerator targetPackage="top.abcdit.gzlogistics.mapper" targetProject="mybatis-generator/src" type="XMLMAPPER" /> <table tableName="tb_user" domainObjectName="Tb_user" enableCountByExample="true" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> <table tableName="r_role" domainObjectName="R_role" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> <table tableName="P_permission" domainObjectName="P_permission" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="true" enableUpdateByExample="false"></table> </context> </generatorConfiguration>
mybatis链接mysql8.0以上版本数据库的逆向工程配置
标签:center mod acl nbsp dma color time sqlmap 逆向
本文系统来源:https://www.cnblogs.com/abcdjava/p/11198142.html
内容总结
以上是互联网集市为您收集整理的mybatis链接mysql8.0以上版本数据库的逆向工程配置全部内容,希望文章能够帮你解决mybatis链接mysql8.0以上版本数据库的逆向工程配置所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。