You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the auto-reconfiguration JAR was simply copied into the
additional lib directory for any application that had Spring in it.
This did not actually enable any of the auto-reconfiguration
functionality. This change causes the auto-reconfiguration framework
to modify a /WEB-INF/web.xml file if it exists in the application.
The modifications made by the framework are detailed in the
documentation for it.
[#49695353]
Tags are printed to standard output by the buildpack detect script
13
-
13
+
14
14
15
15
## Configuration
16
16
The container can be configured by modifying the [`config/tomcat.yml`][tomcat_yml] file. The container uses the [`Repository` utility support][util_repositories] and so it supports the [version syntax][version_syntax] defined there.
Tags are printed to standard output by the buildpack detect script
13
+
14
+
If a `/WEB-INF/web.xml` file exists, the framework will modify it in addition to making the auto reconfiguration JAR available on the classpath. These modifications include:
15
+
16
+
1. Augmenting `contextConfigLocation`. The function starts be enumerating the current `contextConfigLocation`s. If none exist, a default configuration is created with `/WEB-INF/application-context.xml` or `/WEB-INF/<servlet-name>-servlet.xml` as the default. An additional location is then added to the collection of locations; `classpath:META- INF/cloud/cloudfoundry-auto-reconfiguration-context.xml` if the `ApplicationContext` is XML-based, `org.cloudfoundry.reconfiguration.spring.web.CloudAppAnnotationConfigAutoReconfig` if the `ApplicationContext` is annotation-based.
17
+
2. Augmenting `contextInitializerClasses`. The function starts by enumerating the current `contextInitializerClasses`. If none exist, a default configuration is created with no value as the default. The `org.cloudfoundry.reconfiguration.spring.CloudApplicationContextInitializer` class is then added to the collection of classes.
18
+
19
+
## Configuration
20
+
The container can be configured by modifying the [`config/autoreconfiguration.yml`][autoreconfiguration_yml] file. The container uses the [`Repository` utility support][util_repositories] and so it supports the [version syntax][version_syntax] defined there.
0 commit comments