pom.xml 文件中(方便起见使用的是thymeleaf模板引擎):
org.springframework.boot
spring-boot-starter-thymeleaf
org.springframework.boot
spring-boot-starter-web
src/main/resources/templates 目录下创建HTML视图。这里提供两个示例视图,error-page.html 和 result-page.html:error-page.html: