-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathspring-cache.xml
More file actions
27 lines (23 loc) · 1.37 KB
/
spring-cache.xml
File metadata and controls
27 lines (23 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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:cache="http://www.springframework.org/schema/cache"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd">
<!-- Do not process cache annotations
<cache:annotation-driven cache-manager="noOpCacheManager"/>
<bean id="noOpCacheManager" class="org.springframework.cache.support.NoOpCacheManager"/>
-->
<!-- Disabling Hibernate 2-d level cache -->
<beans profile="jpa,datajpa">
<util:properties id="disableCache">
<prop key="entityManagerFactory.jpaPropertyMap[hibernate.cache.use_second_level_cache]">false</prop>
</util:properties>
<context:property-override properties-ref="disableCache"/>
</beans>
</beans>