Jpa Repository got error cannot not serializable when get data from database
If you reference another object using non-primary key column, make the referenced object serializable.
It's a known bug reported in 2012 and still unsolved.
Make Shurl
serialzable and it should work:
@Entity
public class Shurl implements Serializable {
private static final long serialVersionUID = 1L;
}