
Spring
文章平均质量分 58
totogogo
@CityU of HK
展开
-
开始学习Spring 2.0
Spring, 一个强大而有前途的framework,2.0版本已经发布了,多了不少很好的新特性,包括使用xml schema,AOP方面的增强等。该开始接触它,上网查了一下资源,有:http://blog.youkuaiyun.com/nethibernate/archive/2006/11/03/1364235.aspx 介绍了学习spring的有用资源,还有一些FAQhttp://blog原创 2007-04-22 17:28:00 · 936 阅读 · 0 评论 -
《spring 2.0 in action》点滴 (Chapter 03)
Declaring parent and child beans对于同一个class,如果你需要定义多个bean,那么你可以尝试使用parent and child bean。 对于parent and child bean,spring为 element提供了2个属性:Parent— 指定the id of a which is 作为parent bean。Abst原创 2007-08-19 22:49:00 · 2994 阅读 · 2 评论 -
spring:bind tag的一个要注意的问题
一个普通的的使用类似于: user.age"> age" value="${status.value}"> ${status.errorMessage} 需要注意的是:的name属性值必须与的path属性的匹配,否则就绑定不了!例如下面的代码就绑定不了 user.age"> theAge" value="${status.value}"> $原创 2007-05-25 17:13:00 · 3154 阅读 · 0 评论 -
spring + ibatis jpetstore 摘要
spring + ibatis jpetstore 摘要 DB layer涉及的package:org.springframework.samples.jpetstore.dao 包含dao interfaceorg.springframework.samples.jpetstore.dao.ibatis 包含dao interface ibatis implement原创 2008-05-26 17:07:00 · 1993 阅读 · 0 评论 -
spring mvc 3.0
http://duckranger.com/2011/07/spring-mvc-3-0-with-sts-tutorial-part-i/http://blog.youkuaiyun.com/fodly/article/category/873702转载 2011-11-17 18:00:25 · 491 阅读 · 0 评论 -
The best spring 3 mvc tutorial
http://krams915.blogspot.com/p/tutorials.html转载 2011-11-25 17:11:03 · 614 阅读 · 0 评论 -
spring mvc 3 + security
tutorialhttp://krams915.blogspot.com/2010/12/spring-security-mvc-integration.htmlspring security official dochttp://static.springsource.org/spring-security/site/start-here.html转载 2011-11-25 17:18:11 · 643 阅读 · 0 评论 -
Spring 3 get started
使用Eclipse构建Maven的SpringMVC projecthttp://limingnihao.iteye.com/blog/830409Maven 建一个spring webapphttp://www.blogjava.net/birds/archive/2011/04/07/347748.html手动在eclipse里搭建spring 3转载 2011-11-10 01:27:42 · 626 阅读 · 0 评论 -
STS error: No mapping found for HTTP request with URI
当使用STS, create "spring template project" 后,用web server来运行该project时,可能出现下列error:org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/XXX/] in DispatcherServlet原创 2012-02-20 21:08:38 · 7173 阅读 · 1 评论 -
Spring HandlerInterceptor的使用
HandlerInterceptor翻译过来就是spring拦截器,它在某些功能应用上特别有用:1. 用户是否登陆以及用户权限管理 (见http://www.ideawu.net/ideablog/category4/article174.html)2. 根据用户的选择来决定是用HTML还是用Excel来作为View (该应用后面会讲解)3. blackboard building b原创 2007-05-25 16:56:00 · 29123 阅读 · 0 评论 -
《spring 2.0 in action》点滴 (Chapter 02)
ApplicationContext VS BeanFactory ApplicationContext比BeanFactory更为强大,它具备BeanFactory的所有功能,另外还提供一些BeanFactory没有的功能: l support I18Nl provide a way to load file resource, such as原创 2007-08-15 00:47:00 · 1587 阅读 · 1 评论 -
什么是XML Schema?
Spring 2.0采用了XML Schema,那么什么是XML Schema?XML Schema描述了XML文档的结构。可以用一个指定的XML Schema来验证某个XML文档,以检查该XML文档是否符合其要求。XML Schema file的后缀名是“.XSD”[译注//请注意schema和XML Schema的区别:schema或XML schema泛指XML文档的模式(即文档结构转载 2007-04-22 18:17:00 · 2601 阅读 · 0 评论 -
Spring 2.0 点滴 (1)
♦ spring 2.0的dist目录 ♦spring.jar: 包括了modules目录下的所有jar里的class,如果你使用它就不需要再加其他的jar,比较方便!modules目录下:是把spring.jar分拆为多个jar文件,你可以使用你的APP需要的相关jar。其中spring-core.jar是必须要包含的,其他的看APP的需要。例如spring-aop.jar, sprin原创 2007-04-22 23:09:00 · 891 阅读 · 0 评论 -
AOP的主要概念和术语
====关注点(Concern)====关注点就是我们要考察或解决的问题。如订单的处理,用户的验证、用户日志记录等都属于关注点。 关注点中的核心关注点(Core Concerns),是指系统中的核心功能,即真正的商业逻辑。如在一个电子商务系统中,订单处理、客户管理、库存及物流管理都是属于系统中的核心关注点。 还有一种关注点叫横切关注点 (Crosscutting Co转载 2007-04-24 18:06:00 · 2971 阅读 · 0 评论 -
[转载+原创] spring junit 测试
部分内容转自:http://lighter.javaeye.com/blog/41733 利用spring的mock类进行单元测试: spring框架提供了大量测试的mock类,包括与jndi,porlet,web应用相关的mock类。尤其是web应用相关的mock类,可以大大提高web组件测试的方便性。打开spring的下载包的mock文件夹(路径...mock/org/sprin原创 2007-05-01 18:11:00 · 8912 阅读 · 0 评论 -
spring mvc view can't use message resource
在spring servler xml里的配置为:bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> property name="basename" value="messages"/>bean> bean原创 2007-05-02 16:57:00 · 1296 阅读 · 0 评论 -
log4j.properties对于web app摆放的位置
我原来通常都是把 log4j.properties放在WEB-INF目录下, web.xml相应的定义为: log4jConfigLocation /WEB-INF/log4j.properties org.springframework.web.util.Log4jConfigListener 这个设置对于该web app没有任何问题。但是如果你要进行J原创 2007-05-01 01:22:00 · 7270 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException: Scope 'request' is not active for the current thread
如果你要使用request or session scope bean,那么在web.xml里需要加上下面这段设置: org.springframework.web.context.request.RequestContextListener 否则就会出现org.springframework.beans.factory.BeanCreationException: Scop原创 2007-05-13 21:44:00 · 6012 阅读 · 0 评论 -
Spring IDE
对我来说,Spring IDE最实用的一个功能就是:对Class Name进行"Refactor --> Rename..."时,Spring IDE使Eclipse能够把bean config file里的设置也同时自动Refactor rename,非常好! ========如何安装Spring IDE?========== Open Eclipse. Go原创 2007-05-16 21:16:00 · 1420 阅读 · 0 评论 -
spring 3 file upload
参考:http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework-reference/html/ch16s08.htmlhttp://www.ioncannon.net/programming/975/spring-3-file-upload-example/http://www.cnblogs.com/原创 2012-04-11 18:00:39 · 1025 阅读 · 0 评论