IDEA中Mybatis的MGB使用逆向工程配置的详细教程

网友投稿 394 2023-04-13

IDEA中Mybatis的MGB使用逆向工程配置的详细教程

IDEA中Mybatis的MGB使用逆向工程配置的详细教程

添加依赖

添加generatorConfig.xml文件

在maven的plugins中运行mybatis-generator插件

注意事项:

(1).generatorConfig.xml文件需要放在resource路径下。

================================================

1、添加依赖

org.mybatis

mybatis

3.2.8

org.mybatis.generator

mybatis-generator-maven-plugin

1.3.0

org.mybatis.generator

mybatis-generator-core

1.3.2

com.mchange

c3p0

0.9.2

mysql

mysql-connector-java

5.1.8

2、添加generatorConfig.xml文件

PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"

"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">

driverClass="com.mysql.jdbc.Driver"

connectionURL="jdbc:mysql://localhost:3306/project_crowd"

userId="root"

password="root">

driverClass="com.mysql.jdbc.Driver"

connectionURL="jdbc:mysql://localhost:3306/project_crowd"

userId="root"

password="root">

biVwunQjUa

biVwunQjUa

3.在maven的plugins中运行mybatis-generator插件

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:小程序之间如何跳转(小程序之间如何跳转页面)
下一篇:IDEA2020.1使用LeetCode插件运行并调试本地样例的方法详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~