DBUtils 查询报错:Exception in thread "main" java.sql.SQLException: Cannot create....Query

Exception in thread "main" java.sql.SQLException: Cannot create com.wlr.dao.anime: com.wlr.dao.anime Query: select name from anime1 where anime_id=? Parameters: [5114]

查询报错,不能建立这个查询

解决方法:在你的类里加一个无参构造方法。

public anime() {
    super();
}

发布了71 篇原创文章 · 获赞 17 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/carlylll/article/details/102774861