spring-minidao.xml 2.1 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util"
  5. xmlns:tx="http://www.springframework.org/schema/tx" xmlns:task="http://www.springframework.org/schema/task"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  8. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  9. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  10. http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd
  11. http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"
  12. default-autowire="byName" default-lazy-init="false">
  13. <!-- MiniDao动态代理类 -->
  14. <bean id="miniDaoHandler" class="org.jeecgframework.minidao.factory.MiniDaoBeanScannerConfigurer">
  15. <!-- 是使用什么字母做关键字Map的关键字 默认值origin 即和sql保持一致,lower小写(推荐),upper 大写 -->
  16. <property name="keyType" value="lower"></property>
  17. <!-- 格式化sql -->
  18. <property name="formatSql" value="false"></property>
  19. <!-- 输出sql -->
  20. <property name="showSql" value="false"></property>
  21. <!-- 数据库类型 mysql/postgresql/oracle/sqlserver -->
  22. <property name="dbType" value="mysql"></property>
  23. <!-- dao地址,配置符合spring方式 -->
  24. <property name="basePackage" value="org.jeecgframework.*,com.jeecg,cn.com.lzt.*,com.xcgl.*"></property>
  25. <!-- 使用的注解,默认是Minidao,推荐 Repository-->
  26. <property name="annotation" value="org.springframework.stereotype.Repository"></property>
  27. </bean>
  28. </beans>