关键词不能为空

当前您在: 主页 > 英语 >

springdataJpa配置讲解

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-17 05:38
tags:

-

2021年2月17日发(作者:放开)

















.




.











.












.



.
















Jar


包配置







<


dep endency


>






<


gro upId


>




groupId


>






<


art ifactId


>


spring-data-jpa

< p>


artifactId


>





<


version


>


$${n}



version


>






de pendency


>





<


dependency

< p>
>






<


groupId

< br>>




groupId


>






<


artifactId

< p>
>


spring-data-commons-core

< br>


artifactId


>






<


version


>


E



version


>






de pendency


>










<


dependency

< p>
>






<


groupId

< br>>


commons-dbcp



groupId


>






<


art ifactId


>


commons-dbcp

< br>


artifactId


>






<


version


>


$${n}



version


>






<


scope


>


runtime



scope


>






de pendency


>







.



.












. .





































































.




.











.












.



.


















<


dep endency


>






<


gro upId


>


ate



groupId


>






<


art ifactId


>


hibernate-core



artifactId


>






<


version


>


$${n}

< p>


version


>






de pendency


>





<


dependency

< p>
>






<


groupId

< br>>


ate



groupId< /p>


>






<


artifactId

< p>
>


hibernate-entitymanager


artifactId


>






<


version


>


$${n}



version


>






de pendency


>





<


dependency

< p>
>






<


groupId

< br>>


ate



groupId< /p>


>






<


artifactId

< p>
>


hibernate-ehcache



artifactId


>






<


version


>


$${n}



version


>






de pendency


>









<


dependency


>






<


groupId


>


$${d}



groupId


>






<


artifactId


>


$${ctId}< /p>



artifactId


>

< p>





<


version


>


$${n}



version


>





<


scope


>


runtime< /p>



scope


>






dependency


>


.



.












. .





































































.




.











.












.



.

















配置



配置命名空间




xml



version


=



< br>encoding


=



?>



<


beans



xmlns


=




xmlns:xsi


=





xmlns:aop


=< /p>




xmlns:context


=





xmlns:jdbc


=




xmlns:tx


=


< br>



xmlns:jpa


=





xsi:sc hemaLocation


=






./schema/beans ./s


chema/beans/





./schema/aop ./sch


ema/aop/





./schema/context .


/schema/context/




.



.












. .





































































.




.











.












.



.

















./schema/jdbc ./sc


hema/jdbc/





./schema/tx ./sche


ma/tx/





./schema/data/jpa .


g/schema/data/jpa/





default-lazy- init


=



>


扫包配置




<


context:component- scan



base-package


=



>





<


context:exclude- filter



type


=




expression


=




/>





<


context:exclude- filter



type


=




expression


=



ontrollerAdvice


/>





context:component- scan


>



.



.












. .





































































.




.











.












.



.
















Datasource


配置



<


context:property- placeholder



ignore- unresolvable


=







loc ation


=




/>






<


bean



id


=




class


=




destroy-method


=



>




<


property



name


=




value


=



/>




<


property



name


=




value


=



/>




<


property



name


=




value


=



/>




<


property



name


=




value


=



/>





bean


>



Entitymananger


配置









<


bean



id


=




class


=



ge rFactoryBean


>



.



.












. .





















































-


-


-


-


-


-


-


-



本文更新与2021-02-17 05:38,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/661061.html

springdataJpa配置讲解的相关文章