Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as springboot访问路径出现上述错误: 原因是启动类无法扫描路径 启动类所在的路径 和 controller包 在同一级路径 这样就不会出现上述的问题了。