`
ispring
  • 浏览: 355630 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
1.基本概念的理解   绝对路径:绝对路径就是你的主页上的文件或目录在硬盘上真正的路径,(URL和物理路径)例如:C:\xyz\test.txt 代表了test.txt文件的绝对路径。http://www.sun.com/index.htm也代表了一个URL绝对路径。   相对路径: ...
Environment:  Windows Xp + Websphere 6.0.2.0 + IBM JDK/JRE 1.4.2 Description: When I click logout.jsp, it returns a 404. However, acegi sample app logouot work on websphere 6.0.2 Matt suggest the following temp solution: Remove logoutFilter from security.xml (as a bean definition and in the filte ...
在 Spring 中, MultipartResolver 主要用来处理文件上传,它支持 Commons FileUpload (http://jakarta.apache.org/commons/fileupload) 和 COS FileUpload (http://www.servlets.com/cos)。 缺省,Spring是没有multipart处理,因为一些开发者想要自己处理它们。如果你想使用Spring的multipart,需要在web应用的上下文中添加multipart解析器。这样,每个请求就会被检查是否包含multipart。然而,如果请求中包含multipart,你的上下文 ...
在 Spring 中,框架自动集成了异常处理,其主要核心是由 exceptionResolver Bean 来处理的,在框架启动时,会检测这个 Bean ,如果不存在则不会处理系统中的异常,如果有,则会按照相关上配置来处理自动异常。 如有如下配置: <bean id="exceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"> <property name="exceptionMap ...
<!-- 声明一个事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <!-- 声明一个要进行事务处理的Bean --> <bean id="petS ...
主要是通用改写扩展authenticationProcessingFilter类来实现,当然还有开源框架JCaptcha来生成验证码 public class AuthenticationProcessingFilter implements Filter, InitializingBean, ApplicationEventPublisherAware { public static final String ACEGI_SAVED_REQUEST_KEY = "ACEGI_SAVED_REQUEST_KEY"; public static final Strin ...
1.Filter 组件 HttpSessionContextIntegrationFilter 该Filter 负责每次请求从HttpSession中获取Authentication对象,然后把Authentication存于一个新的 ContextHolder对象(其实质上只是一个ThreadLocal对象)中,则让该次请求过程中的任何Filter都可以通过 ContextHolder来共享Authentication,而不需要从HttpSession中取,减少传HttpRequest参数的麻烦.在请求完后把Authentication对象保存到HttpSession中供下次请求使用,最后 ...
Global site tag (gtag.js) - Google Analytics