Error Updating database: Thread exception

Source: Internet
Author: User

slf4j:failed to load Class "Org.slf4j.impl.StaticLoggerBinder".
Slf4j:see Http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException:
# # # Error updating database. Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:You has an error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-to-use-near '} ' on line 1
# # # The error may involve com.qf.pojo.ytusermapper.adduser-inline
# # # The error occurred while setting parameters
# # # Sql:insert into Ytuser (Username,password) values (?, {password})
# # # Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:You has an error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-to-use-near '} ' on line 1

Youdao translation:

SLF4J: Failed to load Class "Org.slf4j.impl.StaticLoggerBinder".

SLF4J: See http://www.slf4j.org/codes.html Staticloggerbinder for further details.

Exception thread "PRIMARY" Org.apache.ibatis.exceptions.PersistenceException:

# # #错误更新数据库. cause: COM.MYSQL.JDBC.EXCEPTIONS.JDBC4. mysqlsyntaxerrorexception: You have a mistake in your SQL syntax; Check the manual that corresponds to the MySQL server version for correct syntax use "}" on line 1th

# # #错误可能涉及com. qf.pojo.ytusermapper.adduser-inline

An error occurred while setting the parameter

# # SQL: Insert ytuser (user name, password) value (?, {password})

# # #原因: COM.MYSQL.JDBC.EXCEPTIONS.JDBC4. mysqlsyntaxerrorexception: You have a mistake in your SQL syntax; Check the manual that corresponds to the MySQL server version for correct syntax use "}" on line 1th

Workaround:

The whole error message is around SQL, so focus on some of the configuration in SQL

Focus: # # # Sql:insert into Ytuser (Username,password) values (?, {password}) this sentence

Plus

Run successfully.

Error Updating database: Thread exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.