Issue
When I build a spring project I can't create this model. How can I fix this error?
Solution
Entity can not store MultipartFile you can use byte[] and @Lob annotation to store it to database.
@Lob
@Column(name = "photo", columnDefinition="BLOB")
private byte[] photo;
Answered By - Gurkan İlleez