当前位置:Gxlcms > 数据库问题 > java.sql.SQLException: Cannot create com._51doit.pojo.User: com._51doit.pojo.User Query: select * from user where username = ? and password = ? Parameters: [AA, 123]

java.sql.SQLException: Cannot create com._51doit.pojo.User: com._51doit.pojo.User Query: select * from user where username = ? and password = ? Parameters: [AA, 123]

时间:2021-07-01 10:21:17 帮助过:5人阅读

在从数据库中查询数据,并存入javabean中去时,报这个错误

技术图片

 

 

原因:在建立User类去存储信息时没有创建无参构造方法,创建一个无参构造方法即可

java.sql.SQLException: Cannot create com._51doit.pojo.User: com._51doit.pojo.User Query: select * from user where username = ? and password = ? Parameters: [AA, 123]

标签:inf   parameter   技术   ann   数据库   原因   没有   create   exception   

人气教程排行