一、URL:接口URL1
org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
第一个问题很大慨率就是接口URL1 需要通过 AFNetworking 表单的形式提交数据
manager.requestSerializer = [AFJSONRequestSerializer serializer];
manager.responseSerializer = [AFJSONResponseSerializer serializer];
二、URL:接口URL2
org.springframework.web.bind.MissingServletRequestParameterException: Required Long parameter '参数' is not present
很大的概率就是参数传空字符串 解决思路就是针对参数从不同页面之间传递添加一些硬编码
同时对参数字符串做判空的操作,字符串合法才会进入下一个页面。
三、NullPointerException就是传参数为null
参考文章:
https://www.huaweicloud.com/articles/94628f92a7d124ee1ba77e8b55ab90b9.html