Hello. The javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.) error is raised when disabling server.error.whitelabel.enabled and trying to navigate to any non-exisiting URL. I suppose in this case application should automatically fallback to underlying servlet container error handling (just report 404) without any exception. The issue is reproduced on SB 2.6.3. Cause of that is how error is handled in org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml. When whitelabel is disabled, resolveErrorView will return null and this will create fallback to ModelAndView("error", model). The workarond for this issue is either to change server.error.path to something that did not match default "/error" or to exclude ErrorMvcAutoConfiguration. Here is a demo project to reproduce this issue, just try to open any URL, for ex. http://localhost:8080/test

Comment From: snicoll

Thanks for the report and the sample.

Duplicate of #2001

Comment From: valkuc

Ah, sorry for duplicate. I was trying to search for similar issue but for some reason I did not find it.