mybatis-generator.xml配置文件详解

 

"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">

       

   

 

   

    "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"/>

 

           

 

           

 

           

 

           

        

 

        

   

 


你可能感兴趣的:(9,后台:mybatis,▍MP,▍MBG,▍DAO层)