Commit Graph

13380 Commits

Author SHA1 Message Date
Stephane Nicoll 033939e3c0 Add error metadata for Security-related keys 2017-09-14 15:47:20 +02:00
Stephane Nicoll 7266c2d009 Merge pull request #10282 from izeye:polish-20170913
* pr/10282:
  Polish
2017-09-14 15:14:27 +02:00
Johnny Lim bd2d08bcd0 Polish
Closes gh-10282
2017-09-14 15:13:51 +02:00
Stephane Nicoll d89f3f9f2a Remove useless ConfigurationProperties on HeapDumpEndpoint
Closes gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 5e7dbe8f4a Move configuration of LogFileWebEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll d7f3008122 Move configuration of EnvironmentEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll bb622292ba Move configuration of ConfigurationPropertiesReportEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Stephane Nicoll 0d62b0cb3c Move configuration of TraceEndpoint
See gh-10263
2017-09-14 15:11:01 +02:00
Andy Wilkinson 9234801c0a Merge branch '1.5.x' 2017-09-14 13:34:13 +01:00
Andy Wilkinson 4bdef4d0f9 Use Spring milestone and snapshot repos for plugins in full profile 2017-09-14 13:34:02 +01:00
Stephane Nicoll 8010f6ef00 Rationalize JUnit5 dependency management
This commit only provides dependency management for JUnit Jupiter,
excluding experimental and migration support artifacts. It also removes
dependency management for the platform as it is used by IDEs and build
tools). The `junit-platform.version` is still available though to allow
users to configure their plugin with a supported placeholder for the
version.

Also, given that `junit-vintage-engine`'s version does not match the
JUnit 4 version it supports, we will not add dependency management for
it.

Closes gh-10240
2017-09-14 11:47:36 +02:00
Brian Clozel 485d0ed8be Polish
Release allocated `DataBuffer` if an error happens during template
processing. Otherwise, this buffer will be automatically released when
written to the exchange.
2017-09-14 10:06:34 +02:00
Andy Wilkinson 8533c3d5ca Upgrade to Spring Security 5.0.0.M4
Closes gh-10126
2017-09-14 06:38:51 +01:00
Andy Wilkinson 736a209e78 Upgrade to Spring Session 2.0.0.M4
Closes gh-10125
2017-09-14 06:38:51 +01:00
Brian Clozel 9dd3fb70e2 Remove Servlet-specific static locations
This commit removes the Servlet root context from the default values for
the `spring.resources.static-locations` configuration property. Servlet
and non-Servlet applications are sharing this property.

The Servlet root context is automatically configured as a resource
location for Spring MVC based applications.

Closes gh-9240
2017-09-13 15:31:05 +02:00
Stephane Nicoll eb4a9d87fd Add actuator to jersey sample
Closes gh-10259
2017-09-13 12:46:43 +02:00
Stephane Nicoll b5d8e072f1 Add actuator to webflux sample
Closes gh-10258
2017-09-13 12:11:20 +02:00
Stephane Nicoll 73f4a2e130 Remove unnecessary override 2017-09-13 12:03:10 +02:00
Stephane Nicoll a825e9f493 Polish 2017-09-13 12:00:43 +02:00
Stephane Nicoll 82fd18cee3 Polish 2017-09-13 11:34:59 +02:00
Stephane Nicoll 4670cc7795 Relax use of spring.session.store-type
This commit makes the "spring.session.store-type" property optional,
adding an additional check when it is not present that validates only
one supported implementation is available on the classpath.

As Spring Session has been modularized, the chance that multiple
implementations are available on the classpath are lower. When only
one implementation is present, we attempt to auto-configure it. When
more than one implementation is present and no session store is
configured, a NonUniqueSessionRepositoryException is thrown.

Closes gh-9863
2017-09-13 11:20:34 +02:00
Stephane Nicoll de47827eb4 Merge pull request #10276 from izeye:java-8
* pr/10276:
  Use Java 8 Javadoc URL
2017-09-13 09:00:28 +02:00
Johnny Lim d12a86bcab Use Java 8 Javadoc URL
Closes gh-10276
2017-09-13 09:00:11 +02:00
Brian Clozel 4568333e39 Merge branch '1.5.x' 2017-09-12 14:29:36 +02:00
Brian Clozel 1669e4bad3 Fixup version numbers following release 2017-09-12 14:28:47 +02:00
Spring Buildmaster 30eb937a83 Next Development Version 2017-09-12 10:54:22 +00:00
Stephane Nicoll 40e6f004da Enable info and status endpoints by default
Closes gh-10161
2017-09-12 12:51:26 +02:00
Stephane Nicoll 222ed44bd4 Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the
"enabledByDefault" boolean flag of Endpoint. This allows to better
control what indicates the default enablement of an endpoint.

With DefaultEnablement#ENABLED, the endpoint is enabled unless an
endpoint specific property says otherwise. With DefaultEnabled#DISABLED,
the endpoint is disabled unless an endpoint specific property says
otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to
indicate that we should resort to the default settings in absence of
a specific property.

See gh-10161
2017-09-12 12:23:04 +02:00
Stephane Nicoll 6cd624ba39 Restore processing of Endpoint meta-data 2017-09-12 12:07:09 +02:00
Andy Wilkinson 6671a19cef Rework Lettuce configuration to use new client pooling config API
Closes gh-9538
2017-09-12 11:00:23 +01:00
Andy Wilkinson 02bc73b8e1 Polish 2017-09-12 10:23:39 +01:00
Andy Wilkinson 3882552b43 Polish 2017-09-12 10:22:35 +01:00
Andy Wilkinson 449515cecd Merge branch '1.5.x' 2017-09-12 10:09:10 +01:00
Andy Wilkinson 2a1cce9f13 Upgrade to Hikaricp Java7 2.4.13
Closes gh-10267
2017-09-12 10:07:25 +01:00
Andy Wilkinson b13beccc47 Upgrade to Appengine Sdk 1.9.56
Closes gh-10266
2017-09-12 10:07:24 +01:00
Andy Wilkinson d6535df2c7 Upgrade to Classmate 1.3.4
Closes gh-10265
2017-09-12 10:07:23 +01:00
Phillip Webb 46dfe38b60 Rework security request matchers
Update the security request matchers so that a bean is no longer needed
when the matcher is used. Matchers can now be build by starting from
the `EndpointRequest` or `StaticResourceRequest` classes. For example:

http.authorizeRequests()
  .requestMatchers(EndpointRequest.to("status", "info")).permitAll()
  .requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("ACTUATOR")
  .requestMatchers(StaticResourceRequest.toCommonLocations()).permitAll()

Closes gh-7958
2017-09-12 00:11:29 -07:00
Phillip Webb 2e51b48cd9 Refactor actuator package locations
Restructure actuator packages to improve structure. The following
changes have been made:

 - Separate actuator and actuator auto-configuration into different
   modules.
 - Move endpoint code into `spring-boot-actuator`.
 - Move `Endpoint` implementations from a single package into
   technology specific packages.
 - Move `HealthIndicator` implementations from a single package into
   technology specific packages.
 - As much as possible attempt to mirror the `spring-boot` package
   structure and class naming in `spring-boot-actuator` and
   `spring-boot-actuator-autoconfigure`.
 - Move `DataSourceBuilder` and DataSource meta-data support from
   `spring-boot-actuator` to `spring-boot`.

Fixes gh-10261
2017-09-12 00:11:20 -07:00
Phillip Webb 0f99b29b1a Temporarily remove security matchers
Temporarily back out `SpringBootSecurity` to enable easier
package refactoring.

See gh-10261
2017-09-12 00:02:34 -07:00
Phillip Webb ecb8461e8c Manually format security configuration
Update security configuration formatting to follow conventions
recommended in the Spring Security documentation.

See gh-7958
2017-09-11 23:58:52 -07:00
Stephane Nicoll 8f79ca9e65 Merge branch '1.5.x' 2017-09-12 08:27:00 +02:00
Stephane Nicoll 1ddc3dce0c Upgrade to Spring Integration Java Dsl 1.2.3.RELEASE
Closes gh-10262
2017-09-12 08:26:09 +02:00
Stephane Nicoll cf3226f799 Upgrade to Spring Integration 4.3.12
Closes gh-10034
2017-09-12 08:25:22 +02:00
Stephane Nicoll a80d466130 Upgrade to Spring Kafka 2.0.0.RC1
Closes gh-10120
2017-09-11 21:45:07 +02:00
Stephane Nicoll c41cfab749 Merge pull request #10240 from eddumelendez:update_junit_jupiter_ga
* pr/10240:
  Polish "Provide dependency management for JUnit Jupiter"
  Provide dependency management for JUnit Jupiter
2017-09-11 20:22:09 +02:00
Stephane Nicoll 1dc08fdda2 Polish "Provide dependency management for JUnit Jupiter"
Closes gh-10240
2017-09-11 20:21:21 +02:00
Eddú Meléndez bb4a8cdc0e Provide dependency management for JUnit Jupiter
Spring Framework 5 provides support for JUnit 5. This commit adds
dependency management for JUnit 5 and an upgrade for
spring-boot-sample-junit-jupiter sample.

See gh-10240
2017-09-11 20:03:26 +02:00
Stephane Nicoll e6811de4ac Merge branch '1.5.x' 2017-09-11 18:21:39 +02:00
Stephane Nicoll 6c4ed5e18b Merge pull request #10256 from aconstantin:patch-1
* pr/10256:
  Use underline instead of dash in tomcat properties
2017-09-11 18:21:24 +02:00
Alexander Constantin 281a93a0c4 Use underline instead of dash in tomcat properties
Closes gh-10256
2017-09-11 18:20:55 +02:00