spring-framework / org.springframework.web.servlet.view / InternalResourceView / setPreventDispatchLoop

setPreventDispatchLoop

open fun setPreventDispatchLoop(preventDispatchLoop: Boolean): Unit

Set whether to explicitly prevent dispatching back to the current handler path.

Default is "false". Switch this to "true" for convention-based views where a dispatch back to the current handler path is a definitive error.