Tomcat运行,但浏览器不显示本地主机页面

时间:2018-10-10 21:05:41

标签: java spring spring-boot

欢迎,我在使用Spring Boot时遇到问题,我想从Spring Boot开始并使用SPRING INITIALIZR生成项目。但是,当我想运行空项目(生成后不做任何更改)时,我的http://localhost:8080/向我显示:

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this 
as a fallback.

Wed Oct 10 22:45:26 CEST 2018
There was an unexpected error (type=Not Found, status=404).
No message available

但是服务器tomcat运行正常,看起来不错。只有这些日志打扰了我:

2018-10-10 22:47:35.378信息2820-[[主要] swsmmaRequestMappingHandlerMapping:将“ {[/ error]}”映射到公共org.springframework.http.ResponseEntity> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)

2018-10-10 22:47:35.382信息2820 --- [main] swsmmaRequestMappingHandlerMapping:将“ {[/ error],produces = [text / html]}”映射到公共org.springframework.web.servlet .ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)

谢谢您的任何建议

0 个答案:

没有答案
相关问题