Commit Graph

6202 Commits

Author SHA1 Message Date
Phillip Webb e0f62308bc Defer SpringBootServletInitializer getLog
Change `SpringBootServletInitializer` so that the logger is created
in `onStartup` rather than on class creation. The allows logging to
be initialized in an different WebApplicationInitializer.

Fixes gh-3704
2015-10-14 23:37:20 -07:00
Phillip Webb f02c651e40 Rename `security-tests-*` to `security-test-*`
Update spring-boot-security-tests to use standard module names.

Fixes gh-4101
2015-10-14 23:25:24 -07:00
Phillip Webb 661737ebac Merge pull request #4137 from bedge/master
* pr/4137:
  Use start-stop-daemon if present in launch.script
2015-10-14 23:19:12 -07:00
Bruce Edge df07151f10 Use start-stop-daemon if present in launch.script
Update `launch.script` to use `start-stop-daemon` when possible to
manage daemon processes. When `start-stop-daemon` is not available `su`
is used.

Closes gh-4137
2015-10-14 23:16:53 -07:00
Phillip Webb eef5e18eec Rename AppliationTemp.getFolder() to getDir()
Update ApplicationTemp so that `dir` is used in preference to `folder`.
This better aligns with the existing ApplicationHome class.

Fixes gh-4192
2015-10-14 23:01:49 -07:00
Phillip Webb 922f8b6ba6 Add `server.session.store-dir` support
Add support for a `server.session.store-dir` property which can be used
to specify where session data source be saved.

Fixes gh-4191
2015-10-14 22:56:01 -07:00
Phillip Webb 1a764d9c06 Default Tomcat to not save SESSIONS.ser file
Update TomcatEmbeddedServletContainerFactory so that session data isn't
serialized by default. Prior to this commit the SESSIONS.ser file would
either be written to `/tmp` or into `baseDir` (if one was set).

By not saving session data we align Tomcat with the other embedded
servlet containers and reduce the risk of sensitive information being
left in `/tmp`.

Fixes gh-4156
2015-10-14 21:30:19 -07:00
Phillip Webb bbee66bac9 Merge pull request #4168 from d10xa/gh-925
* gh-4168:
  Add `spring war` command
2015-10-14 20:51:48 -07:00
Andrey Stolyarov 9a63e574b6 Add `spring war` command
Add a `war` command to the CLI to generate WAR archives.

Fixes gh-925
Closes gh-4168
2015-10-14 20:16:21 -07:00
Andy Wilkinson b1aebe6075 Upgrade to Derby 10.12.1.1
Closes gh-4184
2015-10-14 21:36:19 +01:00
Andy Wilkinson 38f11fdd54 Upgrade to JMustache 1.11
Closes gh-4183
2015-10-14 21:36:18 +01:00
Andy Wilkinson f0609343f1 Upgrade to webjars-locator 0.28
Closes gh-4182
2015-10-14 21:36:18 +01:00
Andy Wilkinson 59e3cb3a08 Upgrade to Postgresql 9.4-1204-jdbc41
Closes gh-4181
2015-10-14 21:36:18 +01:00
Andy Wilkinson 5168477695 Upgrade to Jolokia 1.3.2
Closes gh-4180
2015-10-14 21:36:18 +01:00
Andy Wilkinson 421e307bc3 Upgrade to Infinispan 8.0.1.Final
Closes gh-4179
2015-10-14 21:36:18 +01:00
Andy Wilkinson 057ce1bed9 Upgrade to Hibernate Validator 5.2.2.Final
Closes gh-4178
2015-10-14 21:36:18 +01:00
Andy Wilkinson 7171ef927d Upgrade to Jersey 2.22.1
Closes gh-4177
2015-10-14 21:36:18 +01:00
Andy Wilkinson 23e3548c8c Upgrade to Log4J 2.4.1
Closes gh-4176
2015-10-14 21:36:18 +01:00
Andy Wilkinson 17c28220cb Upgrade to httpclient to 4.5.1 and httpcore to 4.4.3
Closes gh-4174
Closes gh-4175
2015-10-14 21:36:18 +01:00
Andy Wilkinson a3e202e22f Upgrade to Artemis 1.1.0
Closes gh-4173
2015-10-14 21:36:18 +01:00
Andy Wilkinson 2422cfde07 Upgrade to thymeleaf-layout-dialect 1.3.1
Closes gh-4172
2015-10-14 21:36:18 +01:00
Andy Wilkinson 02053e2b50 Upgrade to HikariCP 2.4.1
The Java 6 module has been dropped in 2.4. Dependency management for
HikariCP-java6 is retained at the latest available version; 2.3.9.

Closes gh-4171
2015-10-14 21:36:17 +01:00
Andy Wilkinson 61698b4214 Upgrade to Hazelcast 3.5.3
Closes gh-4169
2015-10-14 21:36:17 +01:00
Andy Wilkinson 73ee21b402 Provide dependency management for JBoss Logging
Several libraries that Spring Boot supports depend on JBoss Logging but
they use a variety of versions. This means that the actual version of
JBoss Logging that will be used depends on your build system. Gradle
will pick the latest version that’s in the dependency graph, Maven
will pick the version that’s nearest the root of the graph and, if two
dependencies are equidistant, it’ll pick the version that’s pulled in
by the dependency listed first in the pom. In short, it’s very hard to
reason about the version of JBoss Logging that you’ll actually use at
runtime.

This commit adds dependency management for JBoss Logging so that a
consistent version is used, irrespective of your build system or
dependencies.

Closes gh-4185
2015-10-14 21:36:17 +01:00
Phillip Webb ef0e6b13b9 Merge pull request #3948 from wwadge/master
* gh-3948-2:
  Allow TraceWebFilter to trace more attributes
2015-10-14 13:26:00 -07:00
Wallace Wadge e3315d2252 Allow TraceWebFilter to trace more attributes
Update TraceWebFilter to optionally trace more details from the
HttpServletRequest/HttpServletResponse. The `management.trace.include`
property can be used to change what aspects are logged.

Closes gh-3948
2015-10-14 13:25:11 -07:00
Phillip Webb 143536f72d Polish 2015-10-14 12:52:38 -07:00
Andy Wilkinson 81f876aac5 Exclude bean-validator from jersey-spring3 to avoid classpath pollution
jersey-spring3 has a transtive dependencies on HK2’s bean-validator
module that embeds JBoss Logging, Hibernate Validator, and Classmate
without repackaging them. This makes it impossible to control the
version of those three libraries that will be used without relying on
classpath ordering.

This commit excludes the bean-validator dependency from jersey-spring3.
The Jersey starter already depends on our Validation starter which
pulls in the proper, and controllable, version of the three
dependencies listed above so users of our starters will be unaffected.

Closes gh-4186
2015-10-14 20:36:43 +01:00
Andy Wilkinson f770dbab52 Apply HttpMessageConverter auto-config to form part converters
Closes gh-3525
2015-10-14 17:36:04 +01:00
Andy Wilkinson 30f24eac0a Merge branch '1.2.x' 2015-10-14 16:33:55 +01:00
Andy Wilkinson 7e718cda26 Remove redundant hash from path of unpacked nested library
Closes gh-4124
2015-10-14 16:32:58 +01:00
Andy Wilkinson 7cd5622199 Merge branch '1.2.x' 2015-10-14 15:53:19 +01:00
Andy Wilkinson d55c001a2e Start building against Spring Framework 4.1.8 snapshots
See gh-4019
2015-10-14 15:52:07 +01:00
Stephane Nicoll 4fca78a9fc Clarify debug mode
Closes gh-3853
2015-10-14 15:59:44 +02:00
Stephane Nicoll 0785357a8b Add a note related to StatsdMetricWriter dependency
Closes gh-3862
2015-10-14 15:36:36 +02:00
Stephane Nicoll 85d6b499a2 Add a note that CRaSH requires a JDK
Closes gh-3813
2015-10-14 15:25:05 +02:00
Andy Wilkinson 435df9c120 Merge branch '1.2.x' 2015-10-14 14:16:51 +01:00
Andy Wilkinson 5ceda4f4ab Upgrade to Spring Data Evans SR4
Closes gh-3576
2015-10-14 14:16:07 +01:00
Stephane Nicoll 496744486c Add links to sample auto-configuration classes
Closes gh-3767
2015-10-14 15:14:20 +02:00
Stephane Nicoll 69581f90da Clarify MainClass option of the bootRepackage task
Closes gh-2477
2015-10-14 15:00:33 +02:00
Stephane Nicoll 06c78a41cd Document that ConfigurationProperties can't use SpEL
Closes gh-1768
2015-10-14 14:36:33 +02:00
Andy Wilkinson 995ff66eae Configure m2e to ignore reserve-network-port in Cassandra sample 2015-10-14 13:23:56 +01:00
Stephane Nicoll cca153e986 Document how to return custom JSON on errors
Closes gh-3999
2015-10-14 14:16:45 +02:00
Stephane Nicoll 266335339d Extract BindingResult if necessary
Previously, no `errors` attribute is made available in the standard JSON
error document if a request body object is invalid. This is due to the
fact that the framework throws a `MethodArgumentNotValidException holding
a `BindingResult` object that was not detected.

We now make sure to extract the `BindingResult` from such exception.

Closes gh-4166
2015-10-14 13:29:16 +02:00
Andy Wilkinson 17fde264e2 Merge branch '1.2.x' 2015-10-14 12:20:09 +01:00
Andy Wilkinson e4895f8fde Disable child context's /error endpoint if disabled in parent
Previously, EndpointWebMvcChildContextConfiguration would attempt to
create a /error endpoint, irrespective of whether or not the parent
had such an endpoint. If the endpoint was disabled in the parent this
would cause a failure due to the absence of an ErrorAttributes bean.

This commit updates EndpointWebMvcChildContextConfiguration to make
the creation of its /error endpoint conditional on the existence of
an ErrorAttributes bean.

Closes gh-4164
2015-10-14 12:06:10 +01:00
Stephane Nicoll 01b23c886f Use random port for Cassandra tests
Closes gh-4028
2015-10-14 11:37:19 +02:00
izeye 033823f493 Disable SecurityFilterAutoConfiguration when spring-security-web is missing
Previously, SecurityFilterAutoConfiguration would be created even if
spring-security-web was not on the classpath. This didn't cause a
failure as all of its beans were disabled. It was, however, wasteful,
as the configuration class was processed and a bean created for it
unnecessarily.

This commit makes the whole class conditional on the presence of
spring-security-web so that it will be skipped entirely when the
dependency is not available.

Closes gh-4160
2015-10-14 10:16:31 +01:00
Andy Wilkinson 1e58f08b9a Provide dependency management for Cassandra Driver
This commit adds dependency management for Cassandra Driver’s three
modules. The version is the latest maintenance release of the minor version that’s used by Spring Data Cassandra in the Spring Data Gosling release train.

Closes gh-4167
2015-10-14 10:09:37 +01:00
Phillip Webb 5150e051c0 Allow remote restart to work with nested JARs
Update remote restart support so that JARs multi-module projects work.

Fixes gh-4040
2015-10-14 01:31:10 -07:00