有没有在不使用 xml的情况下使用spring-boot-starter-data-jpa配置spring-data-mongodb-cross-store ?
在我的 JPA 实体中,我有
@RelatedDocument
private Image image;
这是我的图像类(文档)
@Document
public class CartoonImages implements Serializable{
private static final long serialVersionUID = 2297669065273705668L;
@Id
private ObjectId id;
private String filesize;
private String filetype;
private String filename;
private String base64;
...
当我尝试向我的实体插入图像时,com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'image'异常被触发
由于我正在使用@SpringBootApplication,我该怎么做才能配置跨商店?:)
提前致谢