1.新建springboot项目,选择添加web起步依赖,jsp等依赖需要手动添加 2.在main目录下新建webapp目录,把webapp目录设置jsp的目录 此时目录结构已经发生变化,不再是以前的普通目录