1. Error information:
API Documentation:
org.apache.ibatis.binding.BindingException: Parameter ‘area_ id’ not found. Available parameters are [areaId, param1]
org.apache.ibatis.binding.BindingException: Parameter ‘area_ id’ not found。 The available parameters are [areaid, Param1]
2. Error reporting reason:
The XML internal input parameter has no corresponding.
3. Solution:
area_id = #{areaId,jdbcType=VARCHAR}; Front area_ID is the same as the header in the database, and the simultaneous interpreting of the same areaId is the same as the @Param.
Mapper layer:
@Mapper public interface SalaryStandardConfigMapper extends BaseMapper<SalaryStandardConfig> { SalaryStandardConfig getConfigIdByAreaId(@Param("areaId") String areaId); Integer getConfigIdNums(@Param("areaId") String areaId); }
XML layer:
<select id="getConfigIdNums" resultType="java.lang.Integer" parameterType="java.lang.String"> SELECT COUNT(config_id), area_id FROM salary_standard_config WHERE area_id = #{areaId,jdbcType=VARCHAR}; </select>
Similar Posts:
- [Solved] Mybatis Mapping Error: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘id’ in ‘class java.lang.String
- [Solved] mapper.xml Error: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getNString(Ljava/lang/String;)Ljava/lang/String; is abstract,
- [Solved] Error setting null for parameter #6 with JdbcType OTHER…
- BuildPageQueryResult, condition under the mybatis-plus framework [How to Solve]
- [Solved] Mybatis multi-table query error: Column ‘id’ in field list is ambiguous
- java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal …
- Solve the problem that the highlighted content exceeds the visual area when the introjs scroll bar appears
- Java.lang.outofmemoryerror: permgen space and its solution in eclipse + Maven environment
- SAP work process Memory allocate
- [Solved] Mybatis Error: Invalid bound statement (not found)