随笔分类 -  spring

摘要:使用注解来构造IoC容器用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册。如:在base-package指明一个包1 表明cn.gacl.java包及其子包中,如果某个类的头上带有特定的注解【@Component/@Repository/@Servic... 阅读全文
posted @ 2015-06-11 19:59 雨中飞鹭 阅读(211) 评论(0) 推荐(0)
摘要:一、前言二、spring mvc 核心类与接口三、spring mvc核心流程图四、spring mvcDispatcherServlet说明五、spring mvc 父子上下文的说明六、springMVC-mvc.xml 配置文件片段讲解 七、spring mvc如何访问到静态的文件,如jpg,j... 阅读全文
posted @ 2015-06-09 14:32 雨中飞鹭 阅读(268) 评论(1) 推荐(0)
摘要:/WEB-INF/jdbc.properties JDBC连接配置 org.hibernate.dialect.MySQLDialect true com/ssh/bean/Perso... 阅读全文
posted @ 2014-11-19 12:00 雨中飞鹭 阅读(210) 评论(0) 推荐(0)
摘要:文中用的框架版本:spring 3,hibernate 3,没有的,自己上网下。web.xml配置: 1 2 3 s3h3 4 5 contextConfigLocation 6 classpath:applicationCo... 阅读全文
posted @ 2014-08-27 17:29 雨中飞鹭 阅读(192) 评论(0) 推荐(0)