<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration .//EN" "http://mybatis.org/dtd/mybatis-generator-config__.dtd"> <generatorConfiguration> <!-- 数据库驱动--> <!-- sqljdbc4.jar是SQLServer数据库连接jar包,如果要连接MySQL数据库直接把sqljdbc4.jar改成mysql-connector-java-5.1.25-bin.jar --> <classPathEntry location="sqljdbc.jar"/> <context id="DBTables" targetRuntime="MyBatis"> <commentGenerator> <property name="suppressDate" value="true"/> <!-- 是否去除自动生成的注释 true:是 : false:否 --> <property name="suppressAllComments" value="true"/> </commentGenerator> <!--数据库链接URL,用户名、密码 --> <!--连接数据SQLServer --> <jdbcConnection driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver" connectionURL="jdbc:sqlserver://127.0.0.1:1433;databaseName=dbSSMTEST" userId="sa" password="123"> <!--连接数据库MySQL --> <!-- <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://...:/ypzlmanagement" userId="root" password="hewei"> --> </jdbcConnection> <javaTypeResolver> <property name="forceBigDecimals" value="false"/> </javaTypeResolver> <!-- 生成模型的包名和位置--> <!-- targetPackage="com.ssm.pojo"是生成代码的存放路径这里根据你的路径存放 --> <javaModelGenerator targetPackage="com.ssm.pojo" targetProject="src"> <property name="enableSubPackages" value="true"/> <property name="trimStrings" value="true"/> </javaModelGenerator> <!-- 生成映射文件的包名和位置--> <!-- targetPackage="com.ssm.pojo"是生成代码的存放路径这里根据你的路径存放 --> <sqlMapGenerator targetPackage="com.ssm.mapping" targetProject="src"> <property name="enableSubPackages" value="true"/> </sqlMapGenerator> <!-- 生成DAO的包名和位置--> <!-- targetPackage="com.ssm.pojo"是生成代码的存放路径这里根据你的路径存放 --> <javaClientGenerator type="XMLMAPPER" targetPackage="com.ssm.dao" targetProject="src"> <property name="enableSubPackages" value="true"/> </javaClientGenerator> <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> <!-- tableName是要生成数据库映射文件的表名 domainObjectName要生成代码的实体类名 根据自己需求修改 --> <table tableName="student" domainObjectName="student" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> </context> </generatorConfiguration>
Java -jar mybatis-generator-core-1.3.5.jar -configfile generatorConfig.xml -overwrite
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有