Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

44 wiersze
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
  3. <configuration>
  4. <settings>
  5. <!-- Globally enables or disables any caches configured in any mapper under this configuration -->
  6. <setting name="cacheEnabled" value="true"/>
  7. <!-- Sets the number of seconds the driver will wait for a response from the database -->
  8. <setting name="defaultStatementTimeout" value="3000"/>
  9. <!-- Enables automatic mapping from classic database column names A_COLUMN to camel case classic Java property names aColumn -->
  10. <setting name="mapUnderscoreToCamelCase" value="true"/>
  11. <!-- Allows JDBC support for generated keys. A compatible driver is required.
  12. This setting forces generated keys to be used if set to true,
  13. as some drivers deny compatibility but still work -->
  14. <setting name="useGeneratedKeys" value="true"/>
  15. </settings>
  16. <plugins>
  17. <!---->
  18. <plugin interceptor="com.iformall.plugin.MultiTenancy">
  19. <!--数据库中租户ID的列名-->
  20. <property name="tenantIdColumn" value="tenant_id"/>
  21. <!--数据库方言-->
  22. <property name="dialect" value="mysql"/>
  23. <!--实现租户信息接口(TenantInfo)的实现类-->
  24. <property name="tenantInfo" value="com.iformall.plugin.TenantInfoImpl"/>
  25. </plugin>
  26. </plugins>
  27. <environments default="development">
  28. <environment id="development">
  29. <transactionManager type="JDBC"/>
  30. <!-- 配置数据库连接信息 -->
  31. <dataSource type="POOLED">
  32. <property name="driver" value="com.mysql.jdbc.Driver"/>
  33. <property name="url" value="jdbc:mysql://192.168.1.144:3306/ibase4j?characterEncoding=UTF-8"/>
  34. <property name="username" value="root"/>
  35. <property name="password" value="123456"/>
  36. </dataSource>
  37. </environment>
  38. </environments>
  39. <mappers>
  40. <package name="com.kleen.plugin.mapper"/>
  41. </mappers>
  42. </configuration>