SpringData JPA 如何搭建 xml的配置方式

  <?xml version="1.0" encoding="UTF-8"?>

  

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:tx="http://www.springframework.org/schema/tx"

  xsi:schemaLocation="http://www.springframework.org/schema/beans

  https://www.springframework.org/schema/beans/spring-beans.xsd

  http://www.springframework.org/schema/data/jpa

  https://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

  

  

  entity-manager-factory-ref="entityManagerFactory"

  transaction-manager-ref="transactionManager"

  />