Allow servlet context parmeters to be configured via declaratively

Previously, configuration of a ServletContext init parameter required
the use of a ServletContextInitializer bean. This commmit adds
support for declarative configuration via the environment using
server.context_parameters.<name>=<value>.

Closes gh-1791
This commit is contained in:
Andy Wilkinson
2014-11-17 20:06:14 +00:00
parent e0a0af436f
commit 05cf686713
5 changed files with 107 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ content into your application; rather pick only the properties that you need.
server.port=8080
server.address= # bind to a specific NIC
server.session-timeout= # session timeout in seconds
server.context-parameters.*= # Servlet context init parameters, e.g. server.context-parameters.a=alpha
server.context-path= # the context path, defaults to '/'
server.servlet-path= # the servlet path, defaults to '/'
server.ssl.client-auth= # want or need