Today we have integrated a SSM Project, then deploy to the Tomcat server and start normally. But when I send the request, the error, as follows
The error says that the sequence does not exist, but I created the sequence, and then I tested it, the test statement:Select Tb_user_seq.nextval from dual
The test is not a problem, it is strange, so, began to use the usual means of inspection, Baidu, and then Baidu's methods have been tried, have not been able to solve.
Don't pull the Duzi, say the solution:
For this type of problem, first, you have to ensure that your mapper configuration file and entity class maintain a one by one mapping. Second, make sure you do have this sequence.
After these two problems, after 9,981 difficult, I finally found the problem,
The problem is my Oracle database configuration file is not correct, the URL is written in another library, after solving this problem, I start the server again, send the request, the problem is resolved
Spring,springmvc,mybatis Integrated SSM framework appears ORA-02289: No problem with sequence