- 21 Oct, 2015 3 commits
-
-
Spring Buildmaster authored
-
Phillip Webb authored
Update the "INIT INFO section" of `launch.script` to include `initInfoProvides`, `initInfoShortDescription` and `initInfoDescription` property substitutions. The Maven plugin has been updated to populate substitutions with `${project.artifactId}`, `${project.name}` and `${project.description}`. Fixes gh-4245
-
Phillip Webb authored
-
- 20 Oct, 2015 30 commits
-
-
Phillip Webb authored
* pr/4189: Replace Base64Encoder with Base64Utils
-
Johnny Lim authored
Replace the custom Base64Encoder class with Spring's Base64Utils which since 4.2 can encode bytes using Java 8's encoder, commons-digest or Java 6's JAX-B encoder. Closes gh-4189
-
Phillip Webb authored
* pr/4242: Make response headers optional in /trace endpoint
-
Johnny Lim authored
Update `WebRequestTraceFilter` so that the response respects the TraceProperties.Include.RESPONSE enum. See gh-3948 Closes gh-4242
-
Phillip Webb authored
Effectively revert commit b396d0d2 to restore exception first logging of exceptions for Logback and Log4j2. This commit also introduces new extended versions of "whitespace" padding exception loggers so that source jar information is still included in the stacktrace. Fixes gh-4247
-
Phillip Webb authored
-
Phillip Webb authored
Use an order relative to REQUEST_WRAPPER_FILTER_MAX_ORDER. Closes gh-2637
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
Add a BeanFactoryPostProcessor to set PRESERVE_TARGET_CLASS_ATTRIBUTE to true on all ErrorController bean definitions. Without this attribute AOP advice on @Controllers causes ErrorController beans to be created as JDK proxies (since they implement a single valid looking interface) and therefore not get found by Spring MVC. Fixes gh-4236
-
Stephane Nicoll authored
-
Dave Syer authored
Fixes gh-4250
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-4161
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Previously, the Actuator’s endpoints did not specify a produces attribute on their request mappings. With Jackson’s XML binding on the classpath, this would lead to requests made by a browser receiving application/xml responses (due to the Accept header indicating that application/xml is preferred). This was problematic as some of the response payloads were not legal xml. Problems included XML tags beginning with ‘\’ or containing ‘#’. This commit updates the endpoints to specify that they produce application/json. The environment and metrics endpoints have also been updated so that always return a JSON object, even when they are returning a single entry. This consistency avoids problems where clients may not consider a single scalar value to be legal JSON. Closes gh-2449
-
Stephane Nicoll authored
-
Stephane Nicoll authored
See gh-3696
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Flip the default value of `addResources` for both the Maven and Gradle plugins. This effectively turns off static resources reloading and, more importantly, the pruning of duplicate resources from the target directory. As devetools is our mainstram solution for such feature, the documantion has been updated to reflect that. Closes gh-4227
-
Andy Wilkinson authored
The init script spec [1] describes a number of requirements with which our launch.script did not comply. This commit makes the following corrections: - Add support for force-reload which should be implemented by all init scripts - Don't fail restart if the service is already stopped or not running - Consider stop to be successful if the service is already stopped - Exit with 1 if stop fails (indicating a generic or unspecified error) rather than 3 (unimplemented feature) - Report a status of 1 if app is not running but the pid file exists - Report a status of 3 if the app is not running (no pid file) Closes gh-4231 [1] http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
-
Stephane Nicoll authored
A merge from 1.2.x brought back this module that was deleted on master. Closes gh-4246
-
Stephane Nicoll authored
* pr/4202: Polish contribution Add spring.jersey.path property
-
Stephane Nicoll authored
Closes gh-4202
-
Eddú Meléndez authored
Provide a property to customize the application path that serves as the base URI for a JAX-RS compliant application. If both `spring.jersey.path` and an `@ApplicationPath` are present, the property takes precedence. Closes gh-4201
-
Stephane Nicoll authored
* pr/4241: Remove unused property in TraceProperties
-
Johnny Lim authored
Closes gh-4241
-
Stephane Nicoll authored
* pr/4243: Fix broken link
-
Johnny Lim authored
Closes gh-4243
-
- 19 Oct, 2015 7 commits
-
-
Phillip Webb authored
Update WebMvcAutoConfiguration to use a RequestContextFilter instead of a RequestContextListener. Using a filter is required for some Spring Session operations (see https://github.com/spring-projects/spring-session/issues/129). This update also has the added benefit of allowing the Response to be accessed from RequestContextHolder.getRequestAttributes() by casting it to ServletRequestAttributes. Fixes gh-2637
-
Phillip Webb authored
-
Phillip Webb authored
See gh-4234
-
Phillip Webb authored
See gh-4234
-
Phillip Webb authored
-
Phillip Webb authored
See gh-4234
-
Phillip Webb authored
Update the import order settings to be a little more logical. Imports should now be ordered: java.* javax.* <others> org.springframework.* import static * See gh-4234
-