Home > Back-end >  The frame of the SSM on the page after modify the data database data has not been modified
The frame of the SSM on the page after modify the data database data has not been modified

Time:04-22

What I use is spring, for springMVC, mybatis, after on the JSP page to modify the data, data in the database or the original data that is how to return a responsibility?

CodePudding user response:

Didn't modify success bai, step by step from contoller to service to dao screening bai, the debug debugging, print log, in this way,

CodePudding user response:

Only is there to see the numerical control layer, and then to see in the debug step by step, look at the data operation is successful, you don't have the code on, also to say

CodePudding user response:

Database didn't modify success there are two situations: 1. Have you front desk operations to the database, this kind of situation you can find print log or debug the success to the operation of the database,
2. You did not commit the transaction after the database operation to complete, remember to commit the transaction truly successful operation,

CodePudding user response:

With a layer of a layer of the test class find can find out soon

CodePudding user response:

The debug, based in the foundation, needless to say

CodePudding user response:

An error trying to reason, that no, what's wrong?
You use what way to send the request form is submitted or ajax request?
From the controller to the service to the mapper and see if the controller receives the front-end data,
You only say this words, no one can judge what reason...
Remember to put the console log out next time

CodePudding user response:

I also encountered this problem


I am new and modified page shows a success has not changed but the database data and no error console also show a success

CodePudding user response:

How do you judge success?

CodePudding user response:

Have a look at your business layer code if there is any things only allow readonly

CodePudding user response:

reference Ann _ 7 floor response:
I also encountered this problem


I am new and modified page shows a success has not changed but the database data and no error console also show a success
that you in the end how ah
  • Related