"找不到网址的网页:https://localhost/blabla">消息是作为对具有非法路径的请求的响应而生成的。我需要返回一条自定义消息而不是这条消息。知道怎么做吗?
服务器嵌入了Tomcat
spring-boot-starter-tomcat-1.3.3.RELEASE.jar
spring-webmvc-4.2.5.RELEASE.jar
您可以更新httpd.conf
并指向新页面维护.html(称呼它为任何东西(并将其放置在可以访问它的地方。
// comment anything existing add line below
ErrorDocument 503 /maintenance.html