Home > Back-end >  History use mybatis project - an update failure problems 3.4.5
History use mybatis project - an update failure problems 3.4.5

Time:04-22

Scene: recently took over an old project, get in early spring MVC is about 17, dao and mapper in this project are automatically generated by maven, I added a few tables, due to the new demand generated by maven code found in the service layer after insert is valid, but involves the update all invalid, again docker log can see execution, execution returns the data line is 1

Try: because this project develop the habit of problem before, the vast majority of more new business in the controller or written statement in the mapper with dao calls, I'll try the next table service, before they can update is successful, not only new, check information involves the primary key, and other problems don't exist, they also help to what might be



  • Related