2015年5月26日

摘要: 想必用过Spring的程序员们都有这样的感觉,Spring把逻辑层封装的太完美了(个人感觉View层封装的不是很好)。以至于有的初学者都不知道Spring配置文件的意思,就拿来用了。所以今天我给大家详细解释一下Spring的applicationContext.xml文件。Ok,还是通过代码加注释的... 阅读全文

posted @ 2015-05-26 16:28 Mr.ning 阅读(3600) 评论(0) 推荐(0) 编辑

摘要: 这里是控制台的报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ap... 阅读全文

posted @ 2015-05-26 15:50 Mr.ning 阅读(3462) 评论(0) 推荐(0) 编辑

摘要: (一)工作环境准备: JDK 1.7 EclipseKepler Apache Tomcat 8.0(二)在Eclipse中新建Maven工程,在Archetype类型中,选择“maven-archetype-webapp”。(三)配置pom.xml。[html]view plai... 阅读全文

posted @ 2015-05-26 10:35 Mr.ning 阅读(878) 评论(1) 推荐(0) 编辑