![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
莫負旅途
成长ing……
展开
-
Spring缺少jar包错误
错误提示: Unexpected exception parsing XML document from class path resource [beans-annotation.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource原创 2016-03-19 19:18:39 · 529 阅读 · 0 评论 -
Spring xml配置文件头解析
Spring文档中默认的XML文件格式:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org原创 2016-04-12 19:59:06 · 14190 阅读 · 1 评论 -
JSR303数据校验
在Spring3.1中增加的了对JSR303 Bean Validation规范的支持,不仅可以对Spring的 MVC进行校验,而且也可以对Hibernate的存储对象进行校验。是一个通用的校验框架。 如何使用? (1)在lib目录下加入hibernate validator 验证框架的jar包(Spring 本身并没有提供 JSR303 的实现,所以必须将JSR303 的原创 2016-04-26 16:57:44 · 4624 阅读 · 1 评论 -
Spring声明式事务配置文件
直接上代码:applicationContext.xml:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema原创 2016-04-15 20:10:25 · 579 阅读 · 0 评论 -
ssh开发web应用中各个框架的作用以及整合配置步骤
各个框架的作用: Spring作为bean对象的管理容器(IOC)Struts2 作为核心web控制器Hibernate作为处理数据库的ORM组件ssh详细配置步骤: 1、 定义数据库连接属性文件2、 在web.xml中配置log4j日志;spring上下文加载路径以及监听接 口类;struts配置及映射3、 在spring applicationContext.xml文件原创 2016-07-17 20:01:13 · 1487 阅读 · 0 评论