在tomcat中用xml文件加载一个class类文件,然后报了the value for the useBean class attribute Person.Person is invalid,找了半天没找到原因在哪儿,大家能不能帮忙看看,class类的Java源码
package Person;
public class Person
{
private String name;
private int age;
public Person(String name,int age){
this.name = name;
this.age = age;
}
public void setName(String name){
this.name = name;
}
public void setAge(int age){
this.age = age;
}
public String getName(){
return this.name;
}
public int getAge(){
return this.age;
}
}