码迷,mamicode.com
首页 >  
搜索关键字:spring配置文件    ( 786个结果
使用Spring的@Scheduled实现定时任务
Spring配置文件xmlns加入xmlns:task="http://www.springframework.org/schema/task"xsi:schemaLocation中加入 http://www.springframework.org/schema/task http:...
分类:编程语言   时间:2015-06-12 11:28:45    阅读次数:186
spring集成redis
spring版本:4.1.6.RELEASE redis客户端:2.4.2 redis服务端:2.6.12 spring配置文件: <?xml?version="1.0"?encoding="UTF-8"?> <beans?xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="htt...
分类:编程语言   时间:2015-06-12 10:18:14    阅读次数:283
【spring+websocket的使用】
一、spring配置文件Java代码<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:tx="http://www.springframework.org/schema/tx"xmlns:context="http://www..
分类:编程语言   时间:2015-06-11 00:37:38    阅读次数:158
【spring+websocket的使用】
一、spring配置文件Java代码     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"    xmlns:context="http://www.springframework.org/schema/context"...
分类:编程语言   时间:2015-06-10 15:43:13    阅读次数:163
【spring+websocket的使用】
一、spring配置文件Java代码 复制代码二、web.xml配置注意:必须将对应filter和servlet添加Java代码true复制代码spring websocket信息推送 testSocket.jsp org.springframewor...
分类:编程语言   时间:2015-06-10 15:37:41    阅读次数:148
applicationContext.xml的配置
想必用过Spring的程序员们都有这样的感觉,Spring把逻辑层封装的太完美了(个人感觉View层封装的不是很好)。以至于有的初学者都不知道Spring配置文件的意思,就拿来用了。所以今天我给大家详细解释一下Spring的applicationContext.xml文件。Ok,还是通过代码加注释的...
分类:移动开发   时间:2015-06-09 15:23:16    阅读次数:125
Spring源码追踪3——AOP机制
研究代码:spring配置文件Java代码@Cacheable(value = "test", key = "#city")public Map load(String city) {}【cache:annotation-driven机制】本来以为会有遍历package找类的代码(mybatis那个...
分类:编程语言   时间:2015-06-04 20:42:13    阅读次数:315
关于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...
分类:编程语言   时间:2015-05-30 14:59:36    阅读次数:123
如何在Struts2的拦截器中调用Spring容器
第一种: 通常用ApplicationContext来调用Spring配置文件中的一些Bean,所以首先创建Spring上下文容器。 ApplicationContext ac = (ApplicationContext) invocation.getInvocationContext().getA...
分类:编程语言   时间:2015-05-27 22:47:07    阅读次数:233
ApplicationContext.xml文件详解
想必用过Spring的程序员们都有这样的感觉,Spring把逻辑层封装的太完美了(个人感觉View层封装的不是很好)。以至于有的初学者都不知道Spring配置文件的意思,就拿来用了。所以今天我给大家详细解释一下Spring的applicationContext.xml文件。Ok,还是通过代码加注释的...
分类:移动开发   时间:2015-05-26 18:17:29    阅读次数:146
786条   上一页 1 ... 64 65 66 67 68 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!