测试写java代码

测试写java代码

 1 private String getRequestAcceptType(HttpServletRequest request) {
 2 
 3         String contentType = null;
 4 
 5         for (ContentTypeResolver resolver : this.contentTypeResolvers) {
 6 
 7             contentType = resolver.resolve(request);
 8             if (contentType != null) {
 9                 break;
10             }
11         }
12 
13         if (contentType == null) {
14             contentType = defaultContentType;
15         }
16 
17         return contentType;
18     }

完美,终于找到我要的写博客的地方了。

posted on 2013-12-04 14:21  yujun19880729  阅读(172)  评论(0编辑  收藏  举报

导航