Spring - mvc ( SimpleFormController ) with hibernate database insertion
I have made one example , In which I have used Spring - mvc and开发者_如何学编程 hibernate. I have successfully insert data in the database table but after that I have refresh the page new entry is inserted.
Required Solution : When I refresh the page the database entry would not be inserted second time.
Required Solution : When I refresh the page the database entry would not be inserted second time.
Then send a redirect after submit (by returning a RedirectView
).
精彩评论