model.java
Код: Выделить всё
public class Model {
private Integer id;
private Blob contentblob;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Blob getContentblob() {
return contentblob;
}
public void setContentblob(Blob contentblob) {
this.contentblob = contentblob;
}
< /code>
mapper.java
@Mapper public interface Mapper {
String InsertStatement = "insert into table1 (id, contentblob) values (#{id}, #{contentblob, jdbcType=BLOB})";
@Insert(InsertStatement)
void insertContent(Model param);}
< /code>
i get: < /p>
Не удалось найти метод значения при аннотации SQL. Причина: java.lang.illegalstateException: обработчик типа был нулевым при отображении параметров для свойства «ContentBlob». Это не было указано и/или не было найдено для комбинации Javatype (java.sql.blob): jdbctype (blob). Однако где вторая часть (« затем зарегистрирует ее со SQLSessionFactoryBean Код: Выделить всё
org.mybatis.spring.boot
mybatis-spring-boot-starter
1.3.2
Подробнее здесь: https://stackoverflow.com/questions/796 ... ng-mybatis