jpa.xml 954 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/data/jpa"
  4. xsi:schemaLocation="http://www.springframework.org/schema/beans
  5. http://www.springframework.org/schema/beans/spring-beans.xsd
  6. http://www.springframework.org/schema/data/jpa
  7. http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
  8. <!-- spring data jpa repository base-package:扫描的包,所有继承GenericRepository的接口所在的包需要在这里定义
  9. repository-impl-postfix:仓库自定义实现类型的后缀 自动扫描并添加到接口的实现 factory-class 仓库接口的实现工厂 -->
  10. <repositories base-package="com.uas.saas"
  11. entity-manager-factory-ref="entityManagerFactory"
  12. transaction-manager-ref="transactionManager" repository-impl-postfix="Impl">
  13. </repositories>
  14. </beans:beans>