Com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:Column ' goodsname ' cannot be null
This error is the error that occurred when I encapsulated the page.
private void Addgoods (HttpServletRequest request,httpservletresponse response) throws Servletexception, IOException { c1/>//1. Encapsulate the data of the page fromgoods bean = Webutils.fillformbean (request, fromgoods.class);//3. Create goods object and copy Formbean data goods u = new Goods (); try {beanutils.copyproperties (U, Bean);} catch (Exception e) {//TODO auto-generated catch Blocke.printstack Trace ();} 4. Call the service layer to complete the added Operation Gs.add (u);//5. Recalculate the total page and so on getallgoods (request, response);}
Com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:Column ' goodsname ' cannot be null