mybatis generator配置详解及遇到生成代码重复问题

"1.0" encoding="UTF-8"?>

"-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">



 
 
  

"mysql" defaultModelType="hierarchical" targetRuntime="MyBatis3Simple" >

    
    "autoDelimitKeywords" value="false"/>
    
    "javaFileEncoding" value="UTF-8"/>
    
    "javaFormatter" value="org.mybatis.generator.api.dom.DefaultJavaFormatter"/>
    
    "xmlFormatter" value="org.mybatis.generator.api.dom.DefaultXmlFormatter"/>
    
    
    "beginningDelimiter" value="`"/>
    "endingDelimiter" value="`"/>
    
    
    "com.mysql.jdbc.Driver" connectionURL="jdbc:mysql:///pss" userId="root" password="admin">
        
    
    
    
    type="org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl">
        
        "forceBigDecimals" value="false"/>
    
    
    
    
    "com._520it.mybatis.domain" targetProject="src/main/java">
        
        "constructorBased" value="false"/>
        
        
        "enableSubPackages" value="true"/>
        
        
        "immutable" value="false"/>
        
        
        "rootClass" value="com._520it.mybatis.domain.BaseDomain"/>
        
        
        "trimStrings" value="true"/>
    
    
    
    
    "com._520it.mybatis.mapper" targetProject="src/main/resources">
        
        "enableSubPackages" value="true"/>
    
    
    
    
    "com._520it.mybatis.mapper" type="ANNOTATEDMAPPER" targetProject="src/main/java">
        
        "enableSubPackages" value="true"/>
        
        
    
    
    
    "userinfo" >
        
        "constructorBased" value="false"/>
        
        
        "ignoreQualifiersAtRuntime" value="false"/>
        
        
        "immutable" value="false"/>
        
        
        "modelOnly" value="false"/>
        
        
         
        
        
        
        
        
        
        
        
        
        "selectAllOrderByClause" value="age desc,username asc"/>
        
        
        "useActualColumnNames" value="false"/>
        
        
        
        
        
         
         
         
         "username">
            
            "property" value="userName"/>
            
            
             
            
             
            
            
            
         
         
         
    
复制代码

你可能感兴趣的:(mybatis generator配置详解及遇到生成代码重复问题)