springboot创建后无法打开

来源:2-2 新建SpringBoot项目【标准SpringBoot项目目录结构】

emma0815

2021-09-08

点开local地址http://127.0.0.1:8080 后显示:

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

Tue Sep 07 16:11:23 EDT 2021
There was an unexpected error (type=Not Found, status=404)

=====================================================
disable了这个error之后logging出现了 Circular view path [error]: would dispatch back to the current handler URL [/error] again 的错误
而且网页是404

写回答

1回答

甲蛙

2021-09-09

因为后端服务本来就没有开放http://127.0.0.1:8080 这样一个接口地址,访问当然是404,这是启动后的服务器地址,并没有这样一个接口。

你为什么要去访问呢?我课程没去访问过吧

0
1
王雪洋
为什么127.0.0.1:8080/hello 可以打开,而这个不能打开呢
2022-06-30
共1条回复

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程