RestFul支持

1、get (获得资源) post(新建资源) put(更新资源)delete(删除资源)

 

2、url (里面包含参数)

 

3、web.xml 多配置一个rest的前端控制器

 

在用fastjson 时候 会报

json java.lang.IllegalArgumentException: 'Content-Type' cannot contain wildcard type '*'

这个错:原因 是因为

FastJsonHttpMessageConverter4里面的

 


 

冲突,我们 的路径 是 http://localhost:8080/TestController/testRestFul/123/12

我的处理方式 :

 

 

参考资料:http://www.cnblogs.com/shoren/p/fastjson.html

 

posted on 2017-08-22 10:58  Legend_yan  阅读(113)  评论(0编辑  收藏  举报