
Spring
wuha0
这个作者很懒,什么都没留下…
展开
-
什么是依赖注入
Spring 能有效地组织J2EE应用各层的对象。不管是控制层的Action对象,还是业务层的Service对象,还是持久层的DAO对象,都可在Spring的 管理下有机地协调、运行。Spring将各层的对象以松耦合的方式组织在一起,Action对象无须关心Service对象的具体实现,Service对 象无须关心持久层对象的具体实现,各层对象的调用完全面向接口。当系统需要重构时,代码的改写量将大转载 2012-05-14 14:44:51 · 563 阅读 · 0 评论 -
spring在web.xml中的配置
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> contextConfi转载 2012-05-14 14:53:42 · 789 阅读 · 0 评论 -
web.xml配置详解
xml version="1.0" encoding="UTF-8"?> web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http:转载 2012-05-14 14:58:19 · 3212 阅读 · 2 评论 -
系统启动时,spring配置文件解析失败,报”cvc-elt.1: 找不到元素 'beans' 的声明“异常
转自: http://blog.163.com/sunjinke0213@126/blog/static/86556803201342210243656/ 现象:Tomcat启动时,spring加载配置文件applicationContext.xml出错,抛出nested exception is og.xml.sax.SAXParseException; lineNumber:转载 2014-08-15 14:38:29 · 20227 阅读 · 3 评论