Spring 3.2.* MVC通过Ajax获取JSON数据报406错误

摘要: 问题描述:通过@ResponseBody标签返回JSON数据的方法都报406错,具体为The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers () 百度以后,这位仁兄给了我灵感,http://digdata.me/archives/96/ 原因是spring将放在responseBody的数据头写成[text/html 阅读全文
posted @ 2013-11-06 16:16 云涛梦笔 阅读(520) 评论(0) 推荐(0)

Spring Security 初探

摘要: Spring Security 原先加Acegi Sercurity,是用来加固应用安全访问,在加入Spring之后改变了名称。 基本上在使用Spring Security前,需要大致了解验证授权角色访问控制 通俗的讲就是:验证→ 角色→ 授权→ 访问特定资源,这里的资源可以是URL,也可以是数据。 通过Spring Security可以很方便的完成以上功能,首先在 web.xml 中配置 DelegatingFilterProxy 实例,HTTP请求过滤委派给Spring Security中定义的过滤器。 contextConfigLocation ... 阅读全文
posted @ 2013-11-06 14:09 云涛梦笔 阅读(241) 评论(0) 推荐(0)

开通博客了

摘要: 从今天开始,我从这里杨帆起航~~~~~~~~ 阅读全文
posted @ 2013-01-10 10:42 云涛梦笔 阅读(68) 评论(0) 推荐(0)