idea 使用mybatis plugin插件
来源:互联网 发布:王者荣耀数据模拟器 编辑:程序博客网 时间:2024/05/19 20:43
1、插件安装完成后,在resource目录下创建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> <!-- !!!! Driver Class Path !!!! --> <classPathEntry location="C:\Users\heke\.m2\repository\mysql\mysql-connector-java\5.1.29\mysql-connector-java-5.1.29.jar"/><!--jar包路径--> <context id="context" targetRuntime="MyBatis3" defaultModelType="flat"> <commentGenerator> <property name="suppressAllComments" value="true"/><!--生成注释--> <property name="suppressDate" value="true"/><!--注释是否带有时间蹉--> </commentGenerator> <!-- !!!! Database Configurations !!!! --> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://172.24.0.12:3306/rf_data_center" userId="rf_data_center" password="rf_data_center"/> <javaTypeResolver> <property name="forceBigDecimals" value="false"/> </javaTypeResolver> <!-- !!!! Model Configurations !!!! --> <javaModelGenerator targetPackage="com.jd.jr.rf.country.baitiao.gen.modle" targetProject="THIS_CONFIGURATION_IS_NOT_REQUIRED"> <property name="enableSubPackages" value="false"/> <property name="trimStrings" value="true"/> </javaModelGenerator> <!-- !!!! Mapper XML Configurations !!!! --> <sqlMapGenerator targetPackage="com.jd.jr.rf.country.baitiao.gen.mapper" targetProject="THIS_CONFIGURATION_IS_NOT_REQUIRED"> <property name="enableSubPackages" value="false"/> </sqlMapGenerator> <!-- !!!! Mapper Interface Configurations !!!! --> <javaClientGenerator targetPackage="com.jd.jr.rf.country.baitiao.gen.dao" targetProject="THIS_CONFIGURATION_IS_NOT_REQUIRED" type="XMLMAPPER"> <property name="enableSubPackages" value="false"/> </javaClientGenerator> <!-- !!!! Table Configurations !!!! --> <table tableName="bt_active_apply" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false" enableUpdateByExample="false"/> </context></generatorConfiguration>
2、配置完成后,右键单击选择run as mybatis generator,即可生成
阅读全文
0 0
- idea 使用mybatis plugin插件
- IntelliJ IDEA MyBatis-Plugin插件的使用
- 【IDEA】idea实现Mybatis Plugin插件安装破解及使用
- idea中装mybatis plugin插件
- idea mybatis plugin插件化
- IDEA mybatis-generator-maven-plugin 插件的使用
- idea中Mybatis Plugin插件安装破解及使用
- 【IDEA】Mybatis Plugin插件安装破解及使用
- IntelliJ Idea Mybatis Plugin插件破解
- IntelliJ Idea Mybatis Plugin插件破解
- Intellij IDEA Mybatis plugin插件破解安装
- Intellij IDEA Mybatis plugin插件破解安装
- IntelliJ IDEA下使用 mybatis-generator-maven-plugin插件完成Mybatis逆向工程
- Intellij Idea Mybatis 插件(plugin和tools插件)
- 在IDEA下,使用maven的mybatis-generator-maven-plugin插件自动生成实体类
- Intellij IDEA中使用MyBatis plugin插件安装教程及破解方法
- MyBatis插件的使用:mybatis-generator、mybatis-plugin、mybatis-pagehelper
- Intellij idea mybatis plugin插件的安装与破解
- VS 提示:请考虑使用 app.config 将程序集“XXX”从版本“XX”重新映射到版本“XX”,以解决冲突并消除警告。
- java判断字符串是否为空的方法总结
- Composer快速入门(张高伟)
- 快速入门系列--WebAPI--03框架你值得拥有
- 【玩转数据系列十三】机器学习算法基于信用卡消费记录做信用评分
- idea 使用mybatis plugin插件
- 别再到处搜php类扩展包了;进入composer的时代吧
- 理解Java机制最受欢迎的8幅图
- 网络请求框架
- mysql group_concat函数的使用
- WebView如何使用
- 为Android刷机包签名
- linux中用户管理常用的命令
- Android开发问题集合1