今天学习spring项目的时候出现了下面的错误信息:
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:17...
分类:
编程语言 时间:
2014-07-30 03:21:53
阅读次数:
245
web.xml的配置 s3h3 contextConfigLocation classpath:*Context.xml org.springframework.web.context.Cont...
分类:
编程语言 时间:
2014-07-30 03:15:42
阅读次数:
346
导论:什么是Spring MVC?Spring MVC属于SpringFrameWork的后续产品,已经融合在Spring Web Flow里面。 Spring 框架提供了构建 Web应用程序的全功能 MVC 模块。使用 Spring 可插入的 MVC 架构,可以选择是使用内置的 Spring We...
分类:
编程语言 时间:
2014-07-29 21:34:42
阅读次数:
508
之前一直用quartz做调度任务,这次改用spring了,这里做一个记录,以备查询:在配置文件中增加如下配置:xmlns:task="http://www.springframework.org/schema/task"http://www.springframework.org/schema/taskhttp://www.springframework.org/schema/task/spring-task-3.2.xsd..
分类:
编程语言 时间:
2014-07-29 15:50:19
阅读次数:
195
文件资源操作Spring 定义了一个 org.springframework.core.io.Resource 接口,Resource 接口是为了统一各种类型不同的资源而定义的,Spring 提供了若干 Resource 接口的实现类,这些实现类可以轻松地加载不同类型的底层资源,并提供了获取文件名、...
分类:
编程语言 时间:
2014-07-29 13:56:48
阅读次数:
388
servlet-context.xml
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframewor...
分类:
编程语言 时间:
2014-07-29 13:14:47
阅读次数:
310
正确的springmvc配置如下: <?xml?version="1.0"?encoding="UTF-8"?>
<beans?xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:context...
分类:
编程语言 时间:
2014-07-28 17:00:04
阅读次数:
278
先来看看这个spring的配置文件的配置: ?<!-- 事务管理器 --> ?<bean id="transactionManager" ? class="org.springframework.orm.hibernate3.HibernateTransactionManager"> ? <property name="sessionFacto...
分类:
编程语言 时间:
2014-07-26 03:39:18
阅读次数:
223
mappingLocations、mappingDirectoryLocations与mappingJarLocations 区别 由于spring对hibernate配置文件hibernate.cfg.xml的集成相当好, 所以,在项目中我一直使用spring的org.springframework.orm.hibernate...
分类:
移动开发 时间:
2014-07-25 00:02:54
阅读次数:
387
目录结构:web.xml log4jConfigLocation /WEB-INF/log4j.properties org.springframework.web.util.Log4jConfigListener ...
分类:
编程语言 时间:
2014-07-23 20:22:25
阅读次数:
231