meu codigo lança a exceção
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: Id da conta naoo deve ser nula. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:681) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
@RequestMapping("removeConta") public String remove(Conta conta){ ContaDAO dao = new ContaDAO(); dao.remove(conta); System.err.println("conta apagada"); return "redirect:listaContas"; }
Remover