07 2014 档案

摘要:标题是 spring和filter,但是这里却是说的spring MVC 项目中需要用到filter,filter中需要用到spring实例化的bean,于是为了简化就形成spring和filter了。我遇到的问题:项目用的时Spring MVC+Spring,需要一个filter,这个filter... 阅读全文
posted @ 2014-07-17 14:50 andysd 阅读(273) 评论(0) 推荐(0)
摘要:正则的只是就不在这里重复的讲了,直接上代码var mny = /^(((([1-9]([0-9]{0,8}))|0)\.([0-9]{1,2}))|([1-9]([0-9]{0,8})))$/;mny.test("12341.0"); 阅读全文
posted @ 2014-07-10 20:28 andysd 阅读(840) 评论(0) 推荐(0)
摘要:网站突然让禁止ip访问,于是就通过配置Apache达到了想要的效果。 我们网站用的是Apache+tomcat集群,所以需要配置虚拟主机,虚拟主机我在这里就不说了,不明白的上网搜搜吧,这里只说禁止ip访问的配置,打开虚拟主机的配置文件httpd-vhosts.conf,我的路径是"d:/Apa... 阅读全文
posted @ 2014-07-09 08:55 andysd 阅读(7526) 评论(0) 推荐(0)
摘要:虽然是做web开发,但是web中的很多配置有的时候却不是很清楚,只是知道怎么配置,于是就把在网上看到各种关于web.xml的东西整理一下:web.xml中url-pattern的3种写法1完全匹配/test/list.do2 路径匹配/* 3扩展名匹配 *.do *.html * Filte... 阅读全文
posted @ 2014-07-01 10:02 andysd 阅读(242) 评论(0) 推荐(0)