public class DispatcherServletRegistrationBean extends org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> implements DispatcherServletPath
ServletRegistrationBean for the auto-configured DispatcherServlet. Both
registers the servlet and exposes DispatcherServletPath information.| Constructor and Description |
|---|
DispatcherServletRegistrationBean(org.springframework.web.servlet.DispatcherServlet servlet,
java.lang.String path)
Create a new
DispatcherServletRegistrationBean instance for the given
servlet and path. |
| Modifier and Type | Method and Description |
|---|---|
void |
addUrlMappings(java.lang.String... urlMappings) |
java.lang.String |
getPath()
Returns the configured path of the dispatcher servlet.
|
void |
setUrlMappings(java.util.Collection<java.lang.String> urlMappings) |
addRegistration, configure, getDescription, getMultipartConfig, getServlet, getServletName, getUrlMappings, setLoadOnStartup, setMultipartConfig, setServlet, toStringaddInitParameter, getInitParameters, getOrDeduceName, isAsyncSupported, register, setAsyncSupported, setInitParameters, setNamegetOrder, isEnabled, onStartup, setEnabled, setOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrefix, getRelativePath, getServletUrlMappingpublic DispatcherServletRegistrationBean(org.springframework.web.servlet.DispatcherServlet servlet,
java.lang.String path)
DispatcherServletRegistrationBean instance for the given
servlet and path.servlet - the dispatcher servletpath - the dispatcher servlet pathpublic java.lang.String getPath()
DispatcherServletPathgetPath in interface DispatcherServletPathpublic void setUrlMappings(java.util.Collection<java.lang.String> urlMappings)
setUrlMappings in class org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet>public void addUrlMappings(java.lang.String... urlMappings)
addUrlMappings in class org.springframework.boot.web.servlet.ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet>