Java--Mybatis foreach 循环之 数组(array)取值 方法

图片说明图片说明

错误详情:

```### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6

The error may involve defaultParameterMap

The error occurred while setting parameters

SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?)

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6

]

  • (28462 ms) - 2019-6-3 22:35:45DEBUG Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@23103ebd]
  • (28463 ms) - 2019-6-3 22:35:45DEBUG Returning JDBC Connection to DataSource
  • (28468 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28483 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28484 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28507 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28507 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28513 ms) - 2019-6-3 22:35:45DEBUG Resolving exception from handler [public java.lang.String com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(com.dms.pojo.Course,javax.servlet.http.HttpSession,javax.servlet.http.HttpServletRequest,java.lang.String)]: org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6
  • (28514 ms) - 2019-6-3 22:35:45DEBUG Could not complete request org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '吕试听'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '吕试听') - ?, ?,?, ?,?,?,?) insert into expense_info(cId,sId,expenseDate,expenseWeek,expenseSchoolTime,expenseCoach,createdName,expenseSurplusClassHour,expenseCoursesContent,expenseTeachResult,createdBy,creationDate,modifyBy,modifyDate) values( (select max(id) from course_info), (select s.id from student_info s where s.studentName = '3'), ?,?,?,?,? (select studentClassHourNum from student_info where studentName = '3') - ?, ?,?, ?,?,?,?) ### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 ; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:237) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:364) at com.sun.proxy.$Proxy9.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:236) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:46) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:43) at com.sun.proxy.$Proxy11.addExpenseInfo(Unknown Source) at com.dms.service.course.impl.CourseServiceImpl.addExpenseInfo(CourseServiceImpl.java:52) at com.dms.controller.monthlyinfo.CourseInfoController.courseInfoSave(CourseInfoController.java:375) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:743) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:672) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:82) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(select studentClassHourNum from student_info where studentName = '???è?????') -' at line 6 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:353) at com.mysql.jdbc.Util.getInstance(Util.java:336) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2938) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1601) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1710) at com.mysql.jdbc.Connection.execSQL(Connection.java:2436) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1402) at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:977) at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:169) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:55) at com.sun.proxy.$Proxy25.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:41) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:66) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:45) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:100) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:148) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:137) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:354) ... 50 more 1.

这种写法如何取到值??
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问