Wesley13 Wesley13
4年前
java ee 部分分析
1logfilteranalysis分析filter:与Servlet相似,过滤器是一些web应用程序组件,可以绑定到一个web应用程序中。但是与其他web应用程序组件不同的是,过滤器是"链"在容器的处理过程中的。这就意味着它们会在servlet处理器之前访问一个进入的请求,并且在外发响应信息返回到客户前访问这些响应信息。这种访问使得过滤器可以检查
Stella981 Stella981
4年前
HttpServletRequest、通过request获得请求头、请求体等、解决中文乱码等问题
1、HttpServletRequest概述:我们在创建Servlet时,会重写service()方法、doGet()\\、doPost()方法,这些方法都有两个参数request(请求)和response(响应),service中的request是ServletRequset,而doGet()和doPost()方法中的是:HttpServletRe
Stella981 Stella981
4年前
Netbeans8在web项目中创建servlet
首先,根据http://my.oschina.net/letiantian/blog/366964(http://my.oschina.net/letiantian/blog/366964)的介绍创建项目HelloJSP。右击项目,NewServlet...:!(http://static.oschina.ne
Wesley13 Wesley13
4年前
JSP 九大内置对象及其作用域
JSP中一共预先定义了9个这样的对象,分别为:request、response、session、application、out、pagecontext、config、page、exception,下面就简单介绍下。1、request对象request对象是javax.servlet.httpServletRequest类型的对象
Stella981 Stella981
4年前
Spring Security 是如何在 Servlet 应用中执行的?
SpringSecurity是一个强大的认证和授权框架,它的使用方式也非常简单,但是要想真正理解它就需要花一时间来学习了,最近在学习SpringSecurity时有一些新的理解,特意记录下来防止知识忘记的太快,毕竟好记性不如烂笔关,也给即将准备学习SpringSecurity的同志做一个参考。由于我在学习和使用是基于ServletA
Stella981 Stella981
4年前
SpringBoot学习之路:09.Spring Boot中添加Filter应用
   上篇文章中说了SpringBoot中是如何使用servlet的,本文将讲解在SpringBoot中对过滤器Filter的实现一.编写MyFilter实现Filter接口packagecom.maxbill.core.webbox.filter;importorg.apache.log4j
Wesley13 Wesley13
4年前
Activity转发
实现类似于J2EEweb开发中的servlet转发效果,用于往他人程序中嵌入插件。做法为packagecom.flrsdk.activity;importcom.flrsdk.service.FloatService;importandroid.app.Activity;importan
Stella981 Stella981
4年前
Eclipse搭建springboot项目(八)拦截器、过滤器、监听器
知识点:1、SpringBoot2.x过滤器Filter和使用Servlet3.0配置自定义Filter(核心知识)  filter简单理解:人检票员(filter)景点  1)SpringBoot启动默认加载的Filter    characterEncodingFilter    
Easter79 Easter79
4年前
SpringBoot学习之路:09.Spring Boot中添加Filter应用
   上篇文章中说了SpringBoot中是如何使用servlet的,本文将讲解在SpringBoot中对过滤器Filter的实现一.编写MyFilter实现Filter接口packagecom.maxbill.core.webbox.filter;importorg.apache.log4j
Stella981 Stella981
4年前
Eclipse中使用Maven新建 Servlet 2.5的 SpringMVC项目
1.前言:最近在学习SpringMVC框架,由于使用Eclipse创建的webAPP项目默认使用的还是比较旧的servlet2.3,而且默认使用的还是JDK1.5,所以便有一次开始了我的配置之路2.新建Mavenwebapp项目 !(https://oscim