passer1991

随笔分类 -  spring

1 2 下一页

spring mvc 项目 系统在那个的相对路径
摘要:String realPath= ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("/WEB-INF/spring/config.properties") ; Properties props=new Properties(); try { props.load(new FileInputStream(realPath)); realPath=props.getProperty(Const... 阅读全文

posted @ 2014-01-16 14:44 passer1991 阅读(463) 评论(0) 推荐(0)

Spring框架之Filter应用,filter可以使用spring注入资源
摘要:Spring框架之Filter应用 阅读全文

posted @ 2013-12-29 18:26 passer1991 阅读(123) 评论(0) 推荐(0)

Spring MVC 和Struts2对比
摘要:http://blog.sina.com.cn/s/blog_9ccec9e10101klu6.htmlSpring MVC和Struts2的区别:1. 机制:spring mvc的入口是servlet,而struts2是filter,这样就导致了二者的机制不同。(http://blog.csdn.net/hanzhou4519/article/details/7687951)2. 性能:spring会稍微比struts快。spring mvc是基于方法的设计,而sturts是基于类,每次发一次请求都会实例一个action,每个action都会被注入属性,而spring基于方法,粒度更细,但要 阅读全文

posted @ 2013-12-14 23:30 passer1991 阅读(182) 评论(0) 推荐(0)

在spring mvc 中读取配置文件(porperties)的信息
摘要:String realPath= ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("/WEB-INF/spring/config.properties") ;Properties props=new Properties();props.load(new FileInputStream(realPath));realPath=props.getProperty(Constantsw.UPLOAD_PATH); 阅读全文

posted @ 2013-12-12 16:21 passer1991 阅读(448) 评论(0) 推荐(0)

Spring Security3.1登陆验证
摘要:http://blog.csdn.net/k10509806/article/details/6436987 阅读全文

posted @ 2013-12-03 14:07 passer1991 阅读(120) 评论(0) 推荐(0)

spring security进级篇 V 自定义标签控制显示
摘要:http://gaojiewyh.iteye.com/blog/1501470 阅读全文

posted @ 2013-12-02 15:33 passer1991 阅读(127) 评论(0) 推荐(0)

Spring Security3 - MVC 整合教程 (初识Spring Security3)
摘要:http://www.blogjava.net/fastzch/archive/2010/03/10/315028.htmlhttp://liukai.iteye.com/blog/982088http://www.mkyong.com/spring-security/spring-security-hello-world-example/最近无聊做了个小玩意 ,spring mvc+security3+hibernate jdbc+extjs4+mysql(还在完善中)(一)spring.mvc spring security3(二)spring.mvc spring security3 阅读全文

posted @ 2013-11-20 17:02 passer1991 阅读(241) 评论(0) 推荐(0)

Spring MVC 文件下载最佳实践
摘要:http://mayday85.iteye.com/blog/1622445 阅读全文

posted @ 2013-11-02 15:12 passer1991 阅读(207) 评论(0) 推荐(0)

SpringMvc环境搭建(下载所需的包)
摘要:http://www.cnblogs.com/coqn/archive/2012/08/15/SpringMvc%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E5%87%86%E5%A4%87.html 阅读全文

posted @ 2013-11-02 11:18 passer1991 阅读(176) 评论(0) 推荐(0)

spring mvc 多文件上传(未选择文件,也可以进行表单提交)
摘要:spring mvc 在进行多文件上传的时候,在后台接收上传的文件时,使用数组的形式如MultipartFile[] files,会出现一些问题,比如页面中的一个form表单,没有选择要上传的文件,就要提交,这样后台的action/controller就不执行;如果使用List的形式,即便是在form表单中没有选择要上传的文件,也可以正常的表单提交。 @RequestMapping("addSendHistory") public void addSendHistory(MultipartHttpServletRequest request,HttpServletRespo 阅读全文

posted @ 2013-10-25 15:39 passer1991 阅读(1145) 评论(0) 推荐(0)

Spring3 MVC 深入研究 几乎涵盖了spring3 mvc 常用的知识
摘要:http://www.cnblogs.com/chenying99/archive/2012/03/06/2381227.html非常好! 阅读全文

posted @ 2013-09-03 21:35 passer1991 阅读(113) 评论(0) 推荐(0)

spring mvc 模糊查询防注入
摘要:添加参数时可以使用 args.add("%"+fsxm+"%"); 阅读全文

posted @ 2013-09-02 14:20 passer1991 阅读(395) 评论(0) 推荐(0)

Spring mvc 转发、重定向
摘要:http://blog.csdn.net/yczz/article/details/5937420 阅读全文

posted @ 2013-08-19 10:53 passer1991 阅读(113) 评论(0) 推荐(0)

request 报错The remote server returned an error: (415) Unsupported Media Type.
摘要:request 报错The remote server returned an error: (415) Unsupported Media Type. 阅读全文

posted @ 2013-08-01 10:27 passer1991 阅读(336) 评论(0) 推荐(0)

No mapping found for HTTP request with URI [/spring/WEB-INF/page/index.jsp] in DispatcherServlet with name 'spring'
摘要:今天试了下spring mvc遇到个很奇怪的事情,按照书上配置访问时总是出现如下警告:org.springframework.web.servlet.DispatcherServlet noHandlerFound警告: No mapping found for HTTP request with URI [/myspring/WEB-INF/jsp/hello.jsp] in DispatcherServlet with name 'spring'web.xmlXml代码springorg.springframework.web.servlet.DispatcherServl 阅读全文

posted @ 2013-07-31 18:01 passer1991 阅读(4474) 评论(0) 推荐(0)

Spring配置项之<context:component-scan base-package="..."/>
摘要:Spring配置项之 阅读全文

posted @ 2013-07-31 16:55 passer1991 阅读(271) 评论(0) 推荐(0)

@Resource、@Autowired和default-autowire区别联系
摘要:http://blog.csdn.net/fengyun111999/article/details/6320486Spring中Autowired注解,Resource注解和xml default-autowire工作方式异同 阅读全文

posted @ 2013-07-26 11:52 passer1991 阅读(147) 评论(0) 推荐(0)

Spring mvc annotation and xml example
摘要:http://pan.baidu.com/share/link?shareid=1312935327&uk=774622872 阅读全文

posted @ 2013-07-25 17:59 passer1991 阅读(108) 评论(0) 推荐(0)

Spring AOP + AspectJ Annotation Example
摘要:http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/http://www.blogjava.net/fancydeepin/archive/2012/10/05/spring_aop_aspectj.html 阅读全文

posted @ 2013-04-09 22:16 passer1991 阅读(104) 评论(0) 推荐(0)

struts2和spring的两种整合方式 action的自动装配
摘要:http://www.cnblogs.com/taoxiaoji/archive/2011/03/12/Two_ways_to_integrate_Struts2_and_Spring.htmlstruts2与spring集成时,关于Action类中成员bean自动注入的问题http://1234jie.ok.blog.163.com/blog/static/774269932011106112525549/ 阅读全文

posted @ 2012-12-18 11:38 passer1991 阅读(170) 评论(0) 推荐(0)

1 2 下一页

导航