02 2014 档案

摘要:首先我们都知道要使用spring,则需要在web.xml中增加如下代码:web.xml: 1:org.springframework.web.context.ContextLoaderListener spring是如何加载配置文件肯定也跟 ContextLoaderListener类有关,该类可以作为listener 使用,它会在创建时自动查找WEB-INF/ 下的applicationContext.xrnl 文件。因此,如果只有一个配置文件,并且文件名为applicationContext.xml ,则只需在web.xml加上面代码即可。 如果有多个配置文件需要载入,则考虑使用即元素来确 阅读全文
posted @ 2014-02-25 10:56 宅山仔 阅读(9092) 评论(0) 推荐(2)
摘要:常规解决乱码问题的方法是: a.把所有的jsp页面的charset设置为UTF-8。 b.添加过滤器,在filter内调用request.setCharacterEncoding("utf-8")方法将request的字符集设定为utf-8。 CharacterEncoding org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 forceEncoding true CharacterEncoding *.action c.Tomcat(或jboss)的URIE... 阅读全文
posted @ 2014-02-18 14:47 宅山仔 阅读(1321) 评论(0) 推荐(0)
摘要:SVN上传文件大于100M,提示:Commit failed (details follow):While preparing 'E:\AFCData\tjsc20db_table.sql' for commitCould not write svndiff to temp file: 磁盘空间不足。发生环境: SVN服务器:为1T,不存在空间不足问题 客户端PC机:安装TortoiseSVN所在盘C盘可用空间小于100M。 客户端PC机:工作文件夹所在盘不存在空间不足问题。解决方法:将客户端PC机安装TortoiseSVN所在盘C盘进行磁盘清理,再次添加上传成功。怀疑: 提交 阅读全文
posted @ 2014-02-08 11:09 宅山仔 阅读(2555) 评论(0) 推荐(0)