HTTP Status 400 – Bad Request

前端 未结 2 1634
孤街浪徒
孤街浪徒 2020-12-22 01:21

Hi i am trying to select category while adding new category.Category details get from DB and I am trying to fetch it\'s PK to product command by using <

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-22 01:42

    This is an old question but In case anyone else experiences the same issue then look how I solved it. The problem has nothing to do with the post method that was provide. It is thrown by the next page that you are redirecting to ("redirect:/allProduct"). Your ORM could not successfully map the database result to individual objects, this could be caused by not specifying a primary key or having keys that evaluate to null. So visit your database and fix it, make sure you have everything correct in the end.

提交回复
热议问题