上一篇博客了解了Servlet,这次就来了解一下Filter,简单来说Filter是Servlet规范的一种技术,并不是一个Servlet。它也称为一个过滤器,用来改变一个request和修改一个response,能够在一个request到达servlet之前预处理request,也可以在response离开servlet时处理response。
一、生命周期
上一...
分类:
编程语言 时间:
2014-08-13 18:47:57
阅读次数:
226
1 background: rgba(255, 255, 255, 0.8) !important; /* IE无效,FF有效 */2 3 background: #fff;4 5 filter: alpha(opacity=60);在需要不透明文字的...
分类:
其他好文 时间:
2014-08-13 18:37:26
阅读次数:
211
DelegatingFilterProxy的原理及使用DelegatingFilterProxy就是一个对于servlet filter的代理,用这个类的好处主要是通过Spring容器来管理servlet filter的生命周期,还有就是如果filter中需要一些Spring容器的实例,可以通过sp...
分类:
编程语言 时间:
2014-08-13 17:50:06
阅读次数:
1102
1、eq() 筛选指定索引号的元素2、first() 筛选出第一个匹配的元素3、last() 筛选出最后一个匹配的元素4、hasClass() 检查匹配的元素是否含有指定的类5、filter() 筛选出与指定表达式匹配的元素集合6、is() 检查元素是否参数里能匹配上的7、map...
分类:
Web程序 时间:
2014-08-13 14:31:06
阅读次数:
306
实现图片或背景透明可以使用opacity,如opacity=0.5。但是ie9以下的都不支持,这时候可以使用ie特有的滤镜来实现,只需一句话,filter:alpha(opacity=50);但是注意,如果是设置一个div的opacity属性,那它里面的元素也都有了透明属性。有的时候我们只想让背景透...
分类:
其他好文 时间:
2014-08-13 12:24:36
阅读次数:
257
核心代码:
....
// launcher应用中包含的xml配置
String action = Intent.ACTION_MAIN;
String category1 = Intent.CATEGORY_HOME;
String category2 = Intent.CATEGORY_DEFAULT;
IntentFilter filter = new IntentFil...
分类:
其他好文 时间:
2014-08-13 10:36:16
阅读次数:
192
TIOBE的那个榜单太假了
我帮大家搜集了一下
IEEE Spectrum’s 2014 Ranking
This app ranks the popularity of dozens of programming languages. You can filter them by listing only those most relevant to particular sector...
分类:
其他好文 时间:
2014-08-12 17:29:24
阅读次数:
260
1)PersonService 接口类:
public interface PersonService {
public void save(String naem);
public void update(String name,Integer id);
public String getPersonName(Integer id);
}
2)PersonServiceBean 实现类...
分类:
编程语言 时间:
2014-08-12 17:14:24
阅读次数:
181
接口类PersonService类与6相同。
1)实现类 PersonServiceBean:
@Service
// 使用自动扫描的方式自动装配
public class PersonServiceBean implements PersonService {
@Override
public void save(String name) {
// throw new Runtim...
分类:
编程语言 时间:
2014-08-12 17:12:44
阅读次数:
176
.pop_overlay{ width: 100%; height: 100%; background: #c2c2c2; opacity: 0.5; filter:alpha(opacity=50); position: fixed; z-index: 1; left: 0; top:0; dis...
分类:
其他好文 时间:
2014-08-12 16:47:14
阅读次数:
189