![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
iteye_4372
这个作者很懒,什么都没留下…
展开
-
struts2+spring2.5+hibernate3整合问题总结(陆续更新中)
1、在使用struts2验证框架时,重复输入提交错误,服务器返回的错误信息会重复出现在页面上。 解决方法:将移交给spring管理的action bean 配置为prototype类型 如, 2、 web系统中的相对路径和绝对路径问题,尤其是在要解析一些配置文件或属性文件的时候,经常跳出IOException:找不到文件或路径。 解决: 一、普通应用中获取绝对路径的方法 Str...2008-04-15 16:15:51 · 108 阅读 · 0 评论 -
Spring测试套件
org.springframework.test包能够提供如下一些功能: 缓存Spring上下文 完成测试类的依赖注入 为测试引入事务管理 提供有助于测试的实例变量 1、上下文管理、缓存 借助于org.springframework.test包,能够完成Spring上下文的装载、缓存工作。注意,缓存Spring上下文非 常有意义。在大型项目中,应用启动的时间很长,因为S...2008-04-16 16:03:05 · 138 阅读 · 0 评论 -
运行时切换Log4j日志策略
要实现运行时切换日志策略,需要使用log4j中的 DOMConfigurator.configureAndWatch(location, refreshInterval) 或 PropertyConfigurator.configureAndWatch(location, refreshInterval) location就是log4j配置文件的位置定位,refreshInterval是一个...2009-04-10 18:16:35 · 166 阅读 · 0 评论 -
common file upload 实现文件上传
将commons-fileupload-1.2.jar和commons-io-1.3.2.jar导入到项目库文件目录lib下 1、demo.html <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB18030"> <title>File uplo...2007-10-23 21:26:36 · 133 阅读 · 0 评论