首页 新闻 会员 周边

下面的<beans>如果用Spring的注解形式如何改写才能起作用?

0
悬赏园豆:5 [已关闭问题] 关闭于 2018-08-02 13:00
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/data/jpa
http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">

<-- 需要在 <beans> 标签中增加对 jpa 命名空间的引用 --> 
<jpa:repositories base-package="footmark.springdata.jpa.dao"
entity-manager-factory-ref="entityManagerFactory" 
transaction-manager-ref="transactionManager"/>

</beans>
surriento的主页 surriento | 初学一级 | 园豆:105
提问于:2018-08-02 08:49
< >
分享
所有回答(1)
0

已解决。。

surriento | 园豆:105 (初学一级) | 2018-08-02 13:00
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册