【发布时间】:2018-04-17 14:40:01
【问题描述】:
我已经为我的 SOAP 应用程序创建了一个端点,然后:
@ResponsePayload
public GetCountryResponse getCountry(@ResponsePayload GetCountryRequest request) {
GetCountryResponse response = new GetCountryResponse();
response.setCountry(countryRepository.findCountry(request.getName()));
}
getCountry 方法中的第二个@ResponsePayload 给了我这个错误:
注释@ResponsePayload 不允许用于此位置
【问题讨论】:
-
这是一个
response注释,不应与request一起使用
标签: spring spring-mvc spring-boot soap