首页 > 学院 > 开发设计 > 正文

eclipse下mybatis自动生成

2019-11-06 08:10:29
字体:
来源:转载
供稿:网友
<?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="D:/MySQL-connector-java-5.1.25-bin.jar"/>    <context id="context1">    <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/mydays" driverClass="com.mysql.jdbc.Driver" passWord="" userId="root" />    <javaModelGenerator targetPackage="cn.sPRing.mvc.service.impl" targetProject="Role.of.springmvc" />    <sqlMapGenerator targetPackage="cn.spring.mvc.model" targetProject="Role.of.springmvc" />    <javaClientGenerator targetPackage="mapper" targetProject="Role.of.springmvc" type="XMLMAPPER" />        <table tableName="department" domainObjectName="Department" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="empl_depart" domainObjectName="Empl_depart" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="empl_role" domainObjectName="Empl_role" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="employee" domainObjectName="Employee" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="functions" domainObjectName="Functions" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="role_func" domainObjectName="Role_func" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="roles" domainObjectName="Roles" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="user" domainObjectName="User" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="user_empl" domainObjectName="User_empl" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="users" domainObjectName="Users" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>  </context></generatorConfiguration>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表