因为close是mysql关键字
-- ::, DEBUG (BaseJdbcLogger.java:)- ==> Preparing: select 'true' as QUERYID, id, posid, userid, account_id, contract, open, close, size, deal_size, limitt, stop, status, ctime, utime, direction, type, stop_mode, trailing_step, price_level, cancel_date, fee_buy, fee_sell, routing_status, settle_asset from exproto_contract_position order by id DESC limit ,
-- ::, INFO (XmlBeanDefinitionReader.java:)- Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
-- ::, ERROR (CommonUtils.java:)- msg:runtimeExceptionHandler: org.springframework.jdbc.UncategorizedSQLException:
### Error querying database. Cause: java.sql.SQLException: sql injection violation, syntax error: ERROR. pos , line , column , token CLOSE :
select
'true' as QUERYID,
id, posid, userid, account_id, contract, open, close, size, deal_size, limitt, stop,
status, ctime, utime, direction, type, stop_mode, trailing_step, price_level, cancel_date,
fee_buy, fee_sell, routing_status, settle_asset
from exproto_contract_position
order by id DESC
limit ,
参考:https://blog.****.net/duantianya2012/article/details/54571386