未找到默认的类,应该是你定义的类缺少默认构造方法,也就是无参构造方法。
private String url;
private String title;
private String content;
public News() {} //比如我这里定义的一个新闻类News,当自定义了有参构造方法后,系统就不会再自定义默认的无参构造方法了,所以无参构造方法应该手动加上。
public News(String content, String title, String url) {
this.content = content;
this.title = title;
this.url = url;
}