java webservice cxf ,急啊,救命

开源中国首席逆风 发布于 2015/07/09 15:16
阅读 1K+
收藏 0
2015-07-09 15:14:50,890 WARN  - [org.apache.cxf.jaxrs.utils.JAXRSUtils] No message body reader has been found for request class LoginInputInfo, ContentType : application/x-www-form-urlencoded;charset=utf-8.
2015-07-09 15:14:50,890 WARN  - [org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper] WebApplicationException has been caught : no cause is available

加载中
0
酷酷的就
酷酷的就
LoginInputInfo 类是空的,没有映射xml属性么?
开源中国首席逆风
开源中国首席逆风
设置的有heade 啊
开源中国首席逆风
开源中国首席逆风
No message body reader has been found for request class HttpHeaders, ContentType : application/json. 刚测下 报这个,
0
开源中国首席逆风
开源中国首席逆风
private static Map<String, String> getHeader(){
Map<String, String> headers = new HashMap<String, String>();
// TODO
headers.put("accept", "application/json");
// 管理操作请求(设置默认值)
headers.put("sysip", "0.0.0.1");
headers.put("systemid", "1");
return headers;
}
返回顶部
顶部