web系统,基于spring 2.5和hibernate 3.2
系统先是好的,可是加了ehcache后,访问就出现乱码了
web.xml文件片段如下:
[code="xml"]
indexCacheFilter
net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter
<filter-mapping>
<filter-name>indexCacheFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
[/code]
ehcache.xml文件如下:
[code="xml"]
<?xml version="1.0" encoding="UTF-8"?>
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120" />
<cache
name="SimplePageCachingFilter"
maxElementsInMemory="10"
maxElementsOnDisk="10"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
memoryStoreEvictionPolicy="LFU" />
[/code]
就只动了这两个地方,页面就全是方块形的乱码了,请高手搭救,谢谢
[b]问题补充:[/b]
回lijie250,试了的,不行
[b]问题补充:[/b]
对了,发现后台报错:
2008-09-05 19:27:06,562 WARN [net.sf.ehcache.constructs.web.filter.CachingFilter
] - PageInfo was not ok(200). Putting null into cache SimplePageCachingFilter wi
th key /images/bl.pngnull
2008-09-05 19:27:06,578 WARN [net.sf.ehcache.constructs.web.filter.CachingFilter
] - PageInfo was not ok(200). Putting null into cache SimplePageCachingFilter wi
th key /images/b.pngnull
2008-09-05 19:27:06,578 WARN [net.sf.ehcache.constructs.web.filter.CachingFilter
] - PageInfo was not ok(200). Putting null into cache SimplePageCachingFilter wi
th key /images/br.pngnull
2008-09-05 19:27:06,593 WARN [net.sf.ehcache.constructs.web.filter.CachingFilter
] - PageInfo was not ok(200). Putting null into cache SimplePageCachingFilter wi
th key /images/r.pngnull
2008-09-05 19:27:06,593 WARN [net.sf.ehcache.constructs.web.filter.CachingFilter
] - PageInfo was not ok(200). Putting null into cache SimplePageCachingFilter wi
th key /images/tr.pngnull