关于REST是什么东西,在这里我就不再多说,大家可以去http://blog.csdn.net/pilou5400/archive/2010/12/24/6096861.aspx看看介绍,直接切入主题: 这是一个rest风格的访问,Spring从3.0开始将全面支持rest。不得不感叹Spring的...
分类:
编程语言 时间:
2014-09-06 12:13:43
阅读次数:
505
response.setHeader("expires", "-1"); response.setHeader("cache-control", "no-cache"); response.setHeader("pragma", "no-chche"); ...
分类:
其他好文 时间:
2014-09-06 09:43:52
阅读次数:
211
org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:applicationContext*.xml OpenSessionInViewFilter or...
分类:
编程语言 时间:
2014-09-06 08:35:32
阅读次数:
223
Spring在读取配置文件时,是相对于bin,或者WEB-INF的;“applicationContext.xml”就是找bin或WEB-INF及子文件夹下的文件;“/res/applicationContext.xml”就是必须bin或WEB-INF文件夹下的res文件夹的文件;//res可以换掉...
分类:
编程语言 时间:
2014-09-06 02:12:52
阅读次数:
2048
建立maven项目的过程我就省略了!
直接看pom.xml
pom.xml<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 h...
分类:
编程语言 时间:
2014-09-05 23:54:22
阅读次数:
675
在C#中,枚举用来定状态值很方便,例如我定义一个叫做Season的枚举public enum Season { Spring = 1, Summer = 2, Autumn = 3, Winter = 4 }枚举名是不能出现空格,(...
分类:
其他好文 时间:
2014-09-05 22:24:42
阅读次数:
266
生成SOAP web service
该指南将带领你使用Spring创建一个基于SOAP的web service的整个过程。
分类:
编程语言 时间:
2014-09-05 19:50:22
阅读次数:
376
首先引入joda-time包。maven的dependency: joda-time joda-time 2.4 在Controller代码里:public String testMethod(@Requ...
分类:
编程语言 时间:
2014-09-05 19:43:01
阅读次数:
308
A method includes storing, with a first programmable processor, shared variable data to cache lines of a first cache of the first processor. The metho...
分类:
其他好文 时间:
2014-09-05 19:38:12
阅读次数:
267
A method and apparatus for preservingmemoryordering in a cache coherent link based interconnect in light of partial and non-coherentmemoryaccesses is ...
分类:
数据库 时间:
2014-09-05 19:37:41
阅读次数:
373