--- The error occurred in sqlmap/adinfo. xml.
--- The error occurred while applying a parameter map.
--- Check the insertadinfo-inlineparametermap.
--- Check the parameter mapping for the 'clicks' property.
--- Cause: Java. SQL. sqlexception: parameter index out of range (1> Number of parameters, which is 0 ).
Caused by: Java. SQL. sqlexception: parameter index out of range (1> Number of parameters, which is 0 ).
At com.ibatis.sqlmap.engine.mapping.statement.generalstatement.exe cuteupdate (generalstatement. Java: 91)
At com. ibatis. sqlmap. Engine. impl. sqlmapexecutordelegate. insert (sqlmapexecutordelegate. Java: 442)
After checking for a long time, I found that I wrote a silly SQL statement {}...
<! -- Enter ad statistics -->
<Insert id = "insertadinfo" parameterclass = "com. tq365.vo. adinfo">
Insert
Ad_info (
Clicks,
Impressions,
Clicksrate,
Costperclick,
Cost,
Averageposition,
Conversions,
Codecomconversions,
Conversionsrate,
Googleadid,
Inserttime
) Values {
# Clicks #,
# Impressions #,
# Clicksrate #,
# Costperclick #,
# Cost #,
# Averageposition #,
# Conversions #,
# Codecomconversions #,
# Conversionsrate #,
# Googleadid #,
# Inserttime #
}
</Insert>