generatorConfig.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE generatorConfiguration PUBLIC
  3. "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
  4. "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
  5. <generatorConfiguration>
  6. <classPathEntry location="C:\Users\16096\.m2\repository\mysql\mysql-connector-java\8.0.23\mysql-connector-java-8.0.23.jar"/>
  7. <context id="context" targetRuntime="MyBatis3">
  8. <commentGenerator>
  9. <property name="suppressAllComment" value="false"/>
  10. <property name="suppressDate" value="true"/>
  11. </commentGenerator>
  12. <jdbcConnection
  13. driverClass="com.mysql.jdbc.Driver"
  14. connectionURL="jdbc:mysql://localhost:3306/ShoppingWebsite"
  15. userId="root"
  16. password="123456"
  17. />
  18. <javaTypeResolver>
  19. <property name="forceBigDecimals" value="false"/>
  20. </javaTypeResolver>
  21. <javaModelGenerator targetPackage="WebsiteES.myBatis" targetProject="src/main/java">
  22. <property name="enableSubPackages" value="true"/>
  23. <property name="trimStrings" value="false"/>
  24. </javaModelGenerator>
  25. <sqlMapGenerator targetPackage="myBatisMap" targetProject="src/main/resources">
  26. <property name="enableSubPackages" value="true"/>
  27. </sqlMapGenerator>
  28. <javaClientGenerator targetPackage="WebsiteES.myBatis" targetProject="src/main/java" type="XMLMAPPER">
  29. <property name="enableSubPackages" value="true"/>
  30. </javaClientGenerator>
  31. <table
  32. tableName="userAccount"
  33. enableCountByExample="false"
  34. enableDeleteByExample="false"
  35. enableSelectByExample="false"
  36. enableUpdateByExample="false"
  37. />
  38. <table
  39. tableName="user_cart"
  40. enableCountByExample="false"
  41. enableDeleteByExample="false"
  42. enableSelectByExample="false"
  43. enableUpdateByExample="false"
  44. />
  45. <table
  46. tableName="store"
  47. enableCountByExample="false"
  48. enableDeleteByExample="false"
  49. enableSelectByExample="false"
  50. enableUpdateByExample="false"
  51. />
  52. <table
  53. tableName="goods"
  54. enableCountByExample="false"
  55. enableDeleteByExample="false"
  56. enableSelectByExample="false"
  57. enableUpdateByExample="false"
  58. />
  59. <table
  60. tableName="selectionGroup"
  61. enableCountByExample="false"
  62. enableDeleteByExample="false"
  63. enableSelectByExample="false"
  64. enableUpdateByExample="false"
  65. />
  66. <table
  67. tableName="selection"
  68. enableCountByExample="false"
  69. enableDeleteByExample="false"
  70. enableSelectByExample="false"
  71. enableUpdateByExample="false"
  72. />
  73. </context>
  74. </generatorConfiguration>