<?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= "Mysql-connector-java-commercial-5.1.25-bin.jar"/> <context id= "Context1" > <commentGenerator> < Property Name= "Suppressdate" value= "true"/> <property name= "suppressallcomments" value= "true"/> </ commentgenerator> <jdbcconnection driverclass= "Com.mysql.jdbc.Driver" connectionurl= "jdbc:mysql:// 192.168.47.196:3306/test "userid=" root "password=" 123456 "> </jdbcConnection> <javaTypeResolver> < Property Name= "Forcebigdecimals" value= "false"/> </javaTypeResolver> <javamodelgenerator targetpackage= "Cn.java.entity" targetproject= "D:\TOOL\SOFT_JAVA\DM"/> <sqlmapgenerator targetpackage= "Cn.java.service" targetproject= "D:\TOOL\SOFT_JAVA\DM"/> <javaclientGenerator targetpackage= "Cn.java.service.impl" targetproject= "D:\TOOL\SOFT_JAVA\DM" type= "Xmlmapper" > < Property Name= "Enablesubpackages" value= "true"/> </javaClientGenerator> <table tablename= "Computers" Domainobjectname= "Computers" enablecountbyexample= "false" enableupdatebyexample= "false" enabledeletebyexample= " False "enableselectbyexample=" false "Selectbyexamplequeryid=" false "></table></context></ Generatorconfiguration>
Java Automation in MyBatis simple and practical generation of DAO layer