This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Sep 05 21:18:33 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
Circular view path [HelloWorld]: would dispatch back to the current handler URL [/HelloWorld] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
出现的原因是没有配置Thymeleaf的依赖,无法对页面进行渲染
<!--Thymeleaf的依赖版本-->
<thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
<thymeleaf-layout-dialect.version>2.2.2</thymeleaf-layout-dialect.version>
<!--Thymeleaf的依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>