07 2013 档案
摘要:前台主要代码: 后台commit接收类://设置请求编码req.setCharacterEncoding("UTF-8");//获取编辑数据 这里获取到的是json字符串String deleted = req.getParameter("deleted");String inserted = req.getParameter("inserted");String updated = req.getParameter("updated");if(deleted != null){ //把json字符串转换成对象 L
阅读全文
摘要:Ehcache中不仅可以用配置文件来配置缓存,而在代码中也可以实现同样的功能。CacheManager singletonManager = CacheManager.create();Cache memoryOnlyCache = new Cache(“testCache”, 50000, false, false, 8, 2);Cache test = singletonManager.getCache(“testCache”);删除只需要调用singletonManager.removeCache(“testCache”);Shotdown CacheManager在使用完Ehcache
阅读全文
摘要:OERR: ORA-12519 TNS:no appropriate service handler found客户端连接间歇性失败,报错ORA-12519Cause: the listener could not find any available service handlers that are appropriate for the client connection.Action: 检查lsnrctl service ,instance已经注册,状态显示ready时,可以连接。When the listener believes the current number of conn
阅读全文
摘要:如果你是使用start.bat脚本启动的话,请打开catalina.bat,在最前面添加: set JAVA_OPTS=-Xms512m -Xmx512m如果你是使用service启动的话,请打开regedit编辑注册表: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat6\Parameters\Java 找到叫做Options的key,打开可以看到: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 -D
阅读全文

浙公网安备 33010602011771号