![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 77
Roy_zdc
程序员
展开
-
org.springframework.web.util.IntrospectorCleanupListener监听器的作用
spring中的提供了一个名为org.springframework.web.util.IntrospectorCleanupListener的监听器。这个监听器的用法是,在web.xml中添加: org.springframework.web.util.IntrospectorCleanupListener 它主要负责处理由JavaBe转载 2012-04-30 00:34:22 · 8412 阅读 · 1 评论 -
SSH整合,spring事务管理不回滚问题
Spring的事务回滚,当且仅当捕获到RuntimeException类型异常时,才会回滚,对普通Exception异常无效。以下是我Service层捕获异常,并抛出RuntimeException异常到Action层: @Override public void lock(String id) throws RuntimeException { try {原创 2012-04-28 17:01:27 · 8862 阅读 · 1 评论 -
spring使用模板发送邮件及附件笔记
需要引用的jar包:mail-1.4.1.jaractivation-1.1.jarspring-context-support-2.5.jarspring-webmvc.jar前台页面forgetPassword.jsp:<%String path = request.getContextPath();String basePath = requ原创 2012-05-11 13:57:30 · 9160 阅读 · 1 评论 -
SpringMVC+Json构建基于Restful风格的应用
一、spring 版本:spring-framework-3.2.7.RELEASE二、所需其它Jar包:三、主要代码:web.xml<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema原创 2014-02-16 20:55:24 · 55884 阅读 · 16 评论