jsp 运行时报错Cannot find a method to write property [firstName] of type [java.lang.String] in a bean of type [main.Employee]

原因: 代码没有安装bean的格式写 setFirstName写成了setFristName

错误代码

public void setFristName(String firstName) {
        this.firstName = firstName;
    }

修改代码后通过

public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
原文地址:https://www.cnblogs.com/jiangfeilong/p/10679926.html