码迷,mamicode.com
首页 >  
搜索关键字:springframework    ( 4755个结果
Spring Mvc Web 配置拦截规则与访问静态资源 (三)
拦截规则配置1. *.do appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-...
分类:编程语言   时间:2014-07-23 16:28:41    阅读次数:278
spring mvc+mybatis配置多数据源文件
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
一个简单的Spring定时器例子 注解方式
首先在applicationContext.xml中增加文件头中增加一条xmlns:task="http://www.springframework.org/schema/task"xsi:schemaLocation 中增加一条 http://www.springframework.org/sch...
分类:编程语言   时间:2014-07-22 22:37:52    阅读次数:211
[Java][web]利用Spring随时随地获得Request和Session
利用Spring随时随地获得Request和Session 一、准备工作: 在web.xml中添加                               org.springframework.web.context.request.RequestContextListener                  二、使用方法: 1、方法一:通过代码实现 Ht...
分类:编程语言   时间:2014-07-22 22:33:56    阅读次数:273
spring 定时器应用
实例: applicationContext-quartz.xml配置: ?<beans> ???????<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> ????????? ?<property name="dataSource">?? ??...
分类:编程语言   时间:2014-07-22 09:13:34    阅读次数:268
个人理解去搭建SSH三大框架spring管理配置文件(初学第一次接触SSH)
<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 使用注解方式进行事务管理
使用步骤: 步骤一、在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
SpringMVC通过静态方法获得请求
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
整合SSH遇到的错误
错误一: 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 工程启动找不到 Spring ContextLoaderListener 的解决办法
用maven 工程搭建项目,在搭建好之后,运行时却抛出了这样的错误:??Error configuring application listener of class org.springframework.web.context.ContextLoaderListener?? java.lang.ClassNotFoundExc...
分类:编程语言   时间:2014-07-20 23:29:23    阅读次数:579
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!