org.apache.ibatis.binding .BindingException: параметр «person» не
найден. Доступные параметры: [arg1, arg0, param1, param2]
Это мой код. Как это исправить?
Код: Выделить всё
@(Insert("INSERT INTO profile (person, school) VALUES (#{person}, #{school})";)
void insertOne(TestTextMessage person, String school)
Пробовал это... @(Insert("INSERT INTO профиль (человек, школа ) VALUES (#{arg0}, #{arg1})";), но прямо сейчас получаю ошибку java.lang.Assertion. TestTextMessage — это класс, содержащий следующие значения:
Код: Выделить всё
@Data
@NoArgs
@EqualsAndHashCode
public class TestTextMessage {
private long id;
private String name;
private int age;
}
Код: Выделить всё
messageMapper.insertOne(new TestTextMessage(person1), SchoolType.EDENGLEN);
Подробнее здесь: https://stackoverflow.com/questions/499 ... or-message
Мобильная версия