随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815433
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

spring
[转]Spring加载resource时classpath*:与classpath:的区别      摘要: Spring可以通过指定classpath*:与classpath:前缀加路径的方式从classpath加载文件,如bean的定义文件.classpath*:的出现是为了从多个jar文件中加载相同的文件.classpath:只能加载找到的第一个文件.  阅读全文
posted @ 2011-10-14 11:58 Ke 阅读(745) | 评论 (0)  编辑
struts2 + spring, 使用session範圍的Bean的配置事項      摘要: 異常信息:
Scope 'session' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running out  阅读全文
posted @ 2011-09-06 10:22 Ke 阅读(1856) | 评论 (1)  编辑
spring注解入门(轉)      摘要: 的base-package属性指定了需要扫描的类包,类包及其递归子包中所有的类都会被处理。
还允许定义过滤器将基包下的某些类纳入或排除。Spring支持以下4种类型的过滤方式:

* 过滤器类型 表达式范例 说明
* 注解 org.example.SomeAnnotation 将所有使用SomeAnnotation注解的类过滤出来
* 类名指定 org.example.SomeClass 过滤指定的类
* 正则表达式 com\.kedacom\.spring\.annotation\.web\..* 通过正则表达式过滤一些类
* AspectJ表达式 org.example..*Service+ 通过AspectJ表达式过滤一些类

  阅读全文
posted @ 2009-09-15 15:20 Ke 阅读(355) | 评论 (0)  编辑
用Spring的JdbcTemplate实现分页功能      摘要: Oracle数据库,使用伪列ROWNUM来实现分页。  阅读全文
posted @ 2008-04-20 19:32 Ke 阅读(4982) | 评论 (0)  编辑
转:用Spring快速开发jms应用(JBOSS服务器)      摘要: 异步进程通信是面向服务架构(SOA)一个重要的组成部分,因为企业里很多系统通信,特别是与外部组织间的通信,实质上都是异步的。Java消息服务(JMS)是用于编写使用异步消息传递的JEE应用程序的API。传统的使用JMS API进行消息传递的实现包括多个步骤,例如JNDI查询队列连接工厂和Queue资源,在实际发送和接收消息前创建一个JMS会话。  阅读全文
posted @ 2008-01-15 21:00 Ke 阅读(2780) | 评论 (2)  编辑
在Servlet中调用spring中定义的Bean      摘要: WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()).getBean("bookService");  阅读全文
posted @ 2007-11-25 13:42 Ke 阅读(2996) | 评论 (2)  编辑
拦截器
posted @ 2007-08-19 15:46 Ke 阅读(583) | 评论 (1)  编辑