Java 配置@RequestMapping的produces参数值列表
produces的用法,例如:@RequestMapping(value ="/sitemap.xml",produces = {"application/xml;charset=UTF-8"})
produces的属性值列表如下:
导出文件类型 | produces 参数 |
'doc' | application/msword;charset=UTF-8 |
'bin' | application/octet-stream;charset=UTF-8 |
'exe' | application/octet-stream;charset=UTF-8 |
'so' | application/octet-stream;charset=UTF-8 |
'dll' | application/octet-stream;charset=UTF-8 |
'pdf' | application/pdf;charset=UTF-8 |
'ai' | application/postscript;charset=UTF-8 |
'xls' | application/vnd.ms-excel;charset=UTF-8 |
'ppt' | application/vnd.ms-powerpoint;charset=UTF-8 |
'dir' | application/x-director;charset=UTF-8 |
'js' | application/x-javascript;charset=UTF-8 |
'swf' | application/x-shockwave-flash;charset=UTF-8 |
'xhtml' | application/xhtml+xml;charset=UTF-8 |
'xht' | application/xhtml+xml;charset=UTF-8 |
'zip' | application/zip;charset=UTF-8 |
'mid' | audio/midi;charset=UTF-8 |
'midi' | audio/midi;charset=UTF-8 |
'mp3' | audio/mpeg;charset=UTF-8 |
'rm' | audio/x-pn-realaudio;charset=UTF-8 |
'rpm' | audio/x-pn-realaudio-plugin;charset=UTF-8 |
'wav' | audio/x-wav;charset=UTF-8 |
'bmp' | image/bmp;charset=UTF-8 |
'gif' | image/gif;charset=UTF-8 |
'jpeg' | image/jpeg;charset=UTF-8 |
'jpg' | image/jpeg;charset=UTF-8 |
'png' | image/png;charset=UTF-8 |
'css' | text/css;charset=UTF-8 |
'html' | text/html;charset=UTF-8 |
'htm' | text/html;charset=UTF-8 |
'txt' | text/plain;charset=UTF-8 |
'xsl' | text/xml;charset=UTF-8 |
'xml' | application/xml;charset=UTF-8 |
'mpeg' | video/mpeg;charset=UTF-8 |
'mpg' | video/mpeg;charset=UTF-8 |
'avi' | video/x-msvideo;charset=UTF-8 |
'movie' | video/x-sgi-movie',;charset=UTF-8 |
正在加载评论...
相关文章
- 配置@ConfigurationProperties后读取yml文件的参数...
- Caused by: java.lang.NoClassDefFoundError: Coul...
- springboot加入SSL证书设置https访问
- Springboot用pagehelper分页插件查询Oracle的速度...
- shiro的登录账号密码校验过程,SimpleAuthenticati...
- Shiro控制没有登录时,返回指定JSON格式数据
- SpringBoot中mybatis返回的Date时间格式化
- ClassNotFoundException: org.aspectj.lang.annota...
- org.apache.shiro.UnavailableSecurityManagerExce...
栏目列表
推荐阅读
- java的StringEscapeUtils转义与反转义
- Mybatis的foreach事列,如何获取foreach的index值
- Java Ehcache缓存的timeToIdleSeconds和timeToLiveSeconds区别
- errcode: 40001, errmsg: invalid credential, access_token is invalid or not latest rid: 5f6981c2-6cc9cb20-6833977a
- 服务器侦听端口 netstat -na 命令详解
- Java四种线程池newCachedThreadPool,newFixedThreadPool,newScheduledThreadPool,newSingleThreadExecutor
- tomcat启动maven工程报错-Updating status for Tomcat v7.0 Server at localhost...
- Mybatis异常There is no getter for property named 'XXX' in 'class java.lang.String'
- Java后台获取当前访问客户端的真实IP地址(外网或内网地址)
- com.googlecode.aviator.AviatorEvaluator规则引擎用法
- StringSubstitutor替换占位符,处理SQL参数
- java发送http的get、post请求
- java拦截器HandlerInterceptor的preHandle、postHandle与afterCompletion三个方法
- java中Session缓存和Cache缓存的区别
- Java8对象集合转List<Integer>id集合,转List<String>name集合,List<Class>对象集合
- java图片文件base64流之间的互转帮助类源码下载
- Java导出excel利用jxls合并单元格jx:mergeCells实现表格嵌套技术
- 利用ObjectMapper,将json数组转List<Map<String,Object>>
- java的DES加密解密辅助类
- Java Ecache缓存工具类源码下载