zoukankan      html  css  js  c++  java
  • mybaties报错:There is no getter for property named 'table' in 'class java.lang.String'

    报错是由于xml里获取不到这个table参数

    package com.xxx.mapper;
    import java.util.List;
    import org.apache.ibatis.annotations.Mapper;
    import org.apache.ibatis.annotations.Param;
    @Mapper
    public interface UserMapper {
    
        User getUserById(long id);
    
        // @Select("select * from user_auth_0 ") // 查询所有,改为xml
        List<User> findAll();
    
        /**
         * 加@Param("table") 解决问题: org.apache.ibatis.reflection.ReflectionException:
         * There is no getter for property named 'table' in 'class java.lang.String'
         * @param table
         * @return
         */
        int createTableTest(@Param("table") String table);
    }
  • 相关阅读:
    杂记5
    杂记4
    杂记3
    杂记2
    杂记1
    也来个网页版本的五子棋
    验证码识别
    npm publish命令
    window nginx php ci框架环境搭建
    也来个网页版本的五子棋
  • 原文地址:https://www.cnblogs.com/zs-notes/p/11430379.html
Copyright © 2011-2022 走看看