Spring, метод запроса 'POST' не поддерживается [закрыто]
Прежде всего скажите извинения, чтобы задать этот повторный вопрос ..
На самом деле в моей весенней заявке у меня естьuser.jsp
а такжеprofessional.jsp
вот мой User.jsp:
И вот мой профессионал.jsp:
<p>
Position
</p>
<p>
Location
</p>
<p>
Description
</p>
<p>
</p>
И вот мой класс Controller:
@Controller
@RequestMapping(value = "profile")
public class UserProfileController {
@Autowired
private UserService userService;
@Autowired
private SessionData sessionData;
@RequestMapping(value = "user", method = RequestMethod.GET)
public String user(Model model) throws Exception {
model.addAttribute("PROFESSIONAL", new UserProfessionalForm());
model.addAttribute("EDUCATIONAL", new UserEducationalForm());
model.addAttribute("AWARDS", new UserAwardsForm());
return "profile/user";
}
@RequestMapping(value = "proffessional", method = RequestMethod.POST)
public @ResponseBody
String forgotPassword(UserProfessionalForm professionalForm,
BindingResult result, Model model) {
UserProfileVO userProfileVO = new UserProfileVO();
userProfileVO.setUser(sessionData.getUser());
userService.saveUserProfile(userProfileVO);
model.addAttribute("professional", professionalForm);
return "Your Professional Details Updated";
}
}
Problem
когда мы кликаемAdd
кнопка вprofessional.jsp
в консоли сервера нет ответа, но ниже показано предупреждающее сообщение:
29 Mar, 2013 1:03:51 PM org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver handleHttpRequestMethodNotSupported
WARNING: Request method 'POST' not supported
Почему это предупреждение приходит? я'м уже указан метод = "СООБЩЕНИЕ"..
Пожалуйста помоги..