Spring使用AnnotationMethodHandlerAdapter的handleResponseBody方法, AnnotationMethodHandlerAdapter使用request
header中"Accept"的值和messageConverter支持的MediaType进行匹配,然后会用"Accept"的第一个值写入 response的"Content-Type"。一般...
分类:
编程语言 时间:
2014-07-11 00:17:02
阅读次数:
724
/**
* 功能:使用标准库:文本查询程序
* 时间:2014年7月10日09:10:15
* 作者:cutter_point
*/
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
using line_no=vector::size_type;
/**...
分类:
编程语言 时间:
2014-07-11 00:16:17
阅读次数:
305
参考材料:C++ primer 5th, 4.11
起因是UNIX中一些函数返回void *指针,使用之前要转换成char *指针使用,不清楚会出现什么现象,所以找到type conversion来看
*************************************************************************************
第一部分是i...
分类:
编程语言 时间:
2014-07-10 21:40:11
阅读次数:
217
作用:
禁止当前命令的显示,不受echo的影响
格式
@[command]
demo:
@echo on
@type a.txt
type b.txt
pause
a.txt:
aaaaaaaa
b.txt
bbbbbbbbbb
结果...
本人自己录制的swift菜鸟入门,欢迎大家拍砖,有什么问题可以在这里留言。 主要内容: 存储属性(Stored Properties) 计算属性(Computed Properties) 属性观察器(Property Observers) 全局变量和局部变量(Global and Local Variables) 类型属性(Type Properties) 视频地址: 百度网盘:http://p...
分类:
其他好文 时间:
2014-07-10 20:45:28
阅读次数:
293
public enum ResType { Role = 0, Dept = 1, Group = 2, Site = 3, Org = 4, Sub=8 }这里定义了一个enum ResType用R...
分类:
其他好文 时间:
2014-07-10 16:07:45
阅读次数:
192
all_source描述该用户能访问的对象。user_source描述用户自己的对象。dba_source描述所有系统存储的对象。包括其它对象同样遵循该命名法则。其中描述的对象包含以下内容:PROCEDUREPACKAGEPACKAGE BODYLIBRARYTYPE BODYTRIGGERFUNC...
分类:
数据库 时间:
2014-07-10 15:52:00
阅读次数:
184
The volatile keyword indicates that a field might be modified by multiple threads that are executing at the same time. Fields that are declared volati...
分类:
其他好文 时间:
2014-07-10 15:44:40
阅读次数:
185
最近工程中一个需求就是从本地选择图片设置成用户头像,但是用在onchange事件中得到的路径中包含fakepath。这个问题一直没有找到好的解决办法,无意间发现下面的方法,但是通过打印event.target.result这个变量,发现不是路径,而是一串很长的base64编码,也没弄明白是怎么回事,...
分类:
其他好文 时间:
2014-07-10 15:39:24
阅读次数:
145