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

这几天一直在干springboot项目,老是出现

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as_第1张图片

终于解决了,发出来告诉一下其他人,在出了启动类要放在所有额外写的文件最外面外,最致命的一个就是,pom.xml配置少了东西

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as_第2张图片

 加入上面这个,ok完全解决。

你可能感兴趣的:(java,idea,maven)