Java org.springframework.boot.web.servlet ServletRegistrationBean fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.boot.web.servlet ServletRegistrationBean fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.boot.web.servlet ServletRegistrationBean.

The text is from its open source code.

Constructor

ServletRegistrationBean(T servlet, String... urlMappings)
Create a new ServletRegistrationBean instance with the specified Servlet and URL mappings.
ServletRegistrationBean()
Create a new ServletRegistrationBean instance.

Method

voidaddUrlMappings(String... urlMappings)
Add URL mappings, as defined in the Servlet specification, for the servlet.
StringgetServletName()
Returns the servlet name that will be registered.
voidsetLoadOnStartup(int loadOnStartup)
Sets the loadOnStartup priority.
voidsetServlet(T servlet)
Sets the servlet to be registered.
voidsetUrlMappings(Collection urlMappings)
Set the URL mappings for the servlet.