![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
JamesZhao1987
这个作者很懒,什么都没留下…
展开
-
Second-level cache is not enabled for usage [hibernate.cache.use_second_level_ca
昨天下载了一个hibernate4以上的版本,合计使用EhCache二级缓存,但是就是报上面的异常,找了好多资料还是不知道找到答案,最后将hibernate的缓存3以上的版本,二级缓存生效了,可以使用了,看来hibernate4和3改变了好多东西啊。在hibernate3下面使用二级缓存的实例设置使用二级缓存方式1在hibernate.cfg文件中添加 org.hibernate....原创 2011-12-21 09:47:49 · 322 阅读 · 0 评论 -
字符串中的空格过滤不掉,不在正则s中
今天做爬去网页并筛选出想要的数据放入数据库中的工作,但是做替换空格时,发现一个空格替换不掉,最后获取该位置的字符转换成int时,发现该字符的ascii为12288,心里合计应该是中文下输入的字符。上网一查果然是,于是利用title = title.replaceAll(String.valueOf(((char)12288)),"");的方式替换成功...原创 2012-03-06 16:19:52 · 235 阅读 · 0 评论 -
Access restriction: The constructor SunJCE() is not accessible due to restrictio
Access restriction: The constructor SunJCE() is not accessible due to restriction on required library... 在研究java加密算法时出现了以下编译错误: Access restriction: The constructor SunJCE() is not accessible ...原创 2012-03-29 11:27:05 · 169 阅读 · 0 评论