jsp中setAttribute方法爆红 1.缺少依赖,使用mavan的话直接导入 javax.servlet jsp-api 2.0 provided 2.不使用mavan的话,从Tomcat中找到lib下的jsp-api包导入即可