ServletRegistrationBean

constructor()

Create a new ServletRegistrationBean instance.


constructor(servlet: T, urlMappings: Array<String>)

Create a new ServletRegistrationBean instance with the specified Servlet and URL mappings.

Parameters

servlet

the servlet being mapped

urlMappings

the URLs being mapped


constructor(servlet: T, alwaysMapUrl: Boolean, urlMappings: Array<String>)

Create a new ServletRegistrationBean instance with the specified Servlet and URL mappings.

Parameters

servlet

the servlet being mapped

alwaysMapUrl

if omitted URL mappings should be replaced with '/*'

urlMappings

the URLs being mapped