首先创建一个SpringBoot项目 导入实体类 我们再在resources文件夹下创建静态资源文件 并导入几个页面。 我们可以看到在public文件夹下和templates文件夹下都有index.html 我们启动服务: