私のコードのエラー
予約コントローラー.java
import java.net.BindException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.portlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
public class bookingcontroller extends SimpleFormController {
public bookingcontroller() {
//Initialize controller properties here or
//in the Web Application Context
setCommandClass(Booking.class);
setCommandName("name");
setSuccessView("bookingview");
setFormView("nameview");
}
@Override
protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
Booking booking = (Booking) command;
ModelAndView mv = new ModelAndView(getSuccessView());
mv.addObject("bookingmessages", bookingservices.forminput(booking.getValue()));
return mv;
}
private bookingservices bs;
public void setbookingservices(bookingservices bs) {
this.bs = bs;
}
エラー: @Override
その他のファイル: applicationContext.xml、dispatcher-servlet.xml、redirect.jsp、web.xml、bookingservices.java、bookingcontroller.java、Booking.java、bookingview.jsp、nameview.jsp
コードが必要な場合は、表示します。ファイルの名前を尋ねるだけです..