Angular:
function(team, team) { return this.http.put('/api/tradeTeam/', team,
team2).map(res => res.json()); }
Spring/Hibernate
@RestController
@Controller
public class MainController {
@RequestMapping(value = "/api/tradeTeam/", method = RequestMethod.PUT)
public List<Team> TradeTeam(@RequestBody Team team, Team team2) {
return teamService.TradeTeam(team, team2);
}
}
我做错了什么?我的服务已经正确设置。我的错误信息是:
Servlet.service()在路径为[]的上下文中的servlet [dispatcherServlet]抛出异常[请求处理失败;嵌套异常为java.lang.NullPointerException],根本原因: