急急急!那位大虾帮我解决一下这个web数据库开发的问题
来源:百度知道 编辑:UC知道 时间:2024/06/06 17:48:39
各位大虾们,小弟我初学java web数据库开发前几天刚写一个servlet类,在运行时tomcat报错说"类型 class com.library.entity.LoginAdmin 中不存在属性 auserid 但是我的LoginAdmin中加入了 auserid 变量了
整个工程在http://www.rayfile.com/files/8ed319ab-b054-11dd-bbe0-0019d11a795f/可以下到
开发工具为:
tomcat5.5 eclipse
数据库为postgres
谁能解决这个问题还另有加分
整个工程在http://www.rayfile.com/files/8ed319ab-b054-11dd-bbe0-0019d11a795f/可以下到
开发工具为:
tomcat5.5 eclipse
数据库为postgres
谁能解决这个问题还另有加分
~.~ 勉为其难
大概看了下,实体类写错了,在找属性的时候,是找set和get方法后面的名字,你试试应该是这么写
public String getAuserid() { //u不是大写
return auserid;
}
public void setAuserid(String auserid) {
this.auserid = auserid;
}
apassword 也是,试试把