頁面訪問http://localhost:8080/hello
1.檢查url是否正確
下面的是 :http://localhost:8080/hello
下面的是 : http://localhost:8080/111/hello
上面的路徑對我沒用,檢查pom.xml ,添加thymeleaf依賴 成功訪問。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>