0
我已經註釋彈簧單元測試上的EHCache
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "file:WebContent/WEB-INF/dispatcher-servlet.xml" })
<!-- Start of EhCache -->
<cache:annotation-driven />
<context:component-scan base-package="caching" />
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cacheManager-ref="ehcache"/>
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
p:configLocation="/WEB-INF/ehcache.xml"
p:shared="true"/>
<!-- End of EhCache -->
口口聲聲說ehcache.xml中沒有被發現......但正常的服務器上也可以找到。我可否知道這是什麼問題?