拦截规则配置1. *.do appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-...
分类:
编程语言 时间:
2014-07-23 16:28:41
阅读次数:
278
spring-db-context.xml:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http:..
分类:
编程语言 时间:
2014-07-23 13:44:37
阅读次数:
311
首先在applicationContext.xml中增加文件头中增加一条xmlns:task="http://www.springframework.org/schema/task"xsi:schemaLocation 中增加一条 http://www.springframework.org/sch...
分类:
编程语言 时间:
2014-07-22 22:37:52
阅读次数:
211
利用Spring随时随地获得Request和Session
一、准备工作:
在web.xml中添加
org.springframework.web.context.request.RequestContextListener
二、使用方法:
1、方法一:通过代码实现
Ht...
分类:
编程语言 时间:
2014-07-22 22:33:56
阅读次数:
273
实例: applicationContext-quartz.xml配置: ?<beans> ???????<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> ????????? ?<property name="dataSource">?? ??...
分类:
编程语言 时间:
2014-07-22 09:13:34
阅读次数:
268
<bean id="dataSuorces" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="oracle.jdbc.OracleDirver"/>(oracle数据库) <property name="url"...
分类:
编程语言 时间:
2014-07-22 08:37:36
阅读次数:
200
使用步骤: 步骤一、在spring配置文件中引入<tx:>命名空间 <beans xmlns="http://www.springframework.org/schema/beans" ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ?xmlns:tx="http://www.spri...
分类:
编程语言 时间:
2014-07-21 23:29:22
阅读次数:
392
1.在Web.xml中加入 <listener>
????<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener> 2.调用代码 public?static?HttpServletRequest?getRe...
分类:
编程语言 时间:
2014-07-21 10:35:40
阅读次数:
197
错误一: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring.xml]; nested exception is java.lang.NoClassDefFou...
分类:
其他好文 时间:
2014-07-21 10:17:14
阅读次数:
212
用maven 工程搭建项目,在搭建好之后,运行时却抛出了这样的错误:??Error configuring application listener of class org.springframework.web.context.ContextLoaderListener?? java.lang.ClassNotFoundExc...
分类:
编程语言 时间:
2014-07-20 23:29:23
阅读次数:
579