1、 Error analysis
It can be seen from the error prompt that the actual parameters passed in are larger than the parameters to be set in SQL, that is, the parameters in SQL?Less than parameter or?There is no
cause at all
? The number is surrounded by single quotation marks
For example:
sql += " and article_title like '%#{articleTitle}%'";
2、 Solutions
Remove single quotes
The above SQL is changed to:
sql += " and article_title like concat('%',#{articleTitle},'%')";
Read More:
- Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- java.sql.SQLException : IO exception: socket read timed out
- java.sql.SQLException : IO error: socket read timed out!
- 【Bug-python】IndexError: list index out of range
- panic: runtime error: index out of range
- String index out of range: 100 error report details and Solutions
- Solve the problem caused by: java.sql.SQLRecoverableException : IO error: connection reset related problems
- SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error] with root
- Error: (22,57) Java: type parameter… Mapper is not in the range of type variable M
- java.sql.SQLException: Incorrect string value:
- Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNot
- Caused by: java.lang.IllegalStateException: Ambiguou There is already ‘XXXXXXController‘ bean method
- Error: globalconfigutils setmetadata fail! Cause:java.sql.SQLException…
- Cause: java.sql.SQLException: invalid column type: 1111 Error [How to Fix]
- java.sql.SQLException: The Network Adapter could not establish the connection
- Max must be larger than min in range parameter
- (Caused by SSLError(SSLError(1, ‘[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)‘)))
- Error code 1045, state 28000, Java sql.SQLException :Access denied for user ‘root’@’localhost’
- Concat error caused by tensorflow version