Commit Graph

13513 Commits (eefdbb7341014a8c8813a040f4371feb25146bc9)
 

Author SHA1 Message Date
Stephane Nicoll 6975e1b783 Merge pull request #10153 from mp911de:close-redis-connection
* pr/10153:
  Close reactive Redis connection after health check
7 years ago
Mark Paluch 0e2f7c57ee Close reactive Redis connection after health check
Closes gh-10153
7 years ago
Stephane Nicoll 11edff7576 Discover endpoints in parent context
Closes gh-10144
7 years ago
Stephane Nicoll a274c78fa0 Add support for reactive health indicator
This commit introduces a "ReactiveHealthIndicator" contract that can be
implemented for health checks against a reactive API.

When running in a WebFlux-based web app, the health and status endpoints
transparently use this in a WebFlux-based application and regular
HealthIndicator are executed on the elastic scheduler.

When running in a Servlet-based web app, the endpoints includes and
adapts available ReactiveHealthIndicators automatically

Closes gh-7972
7 years ago
Andy Wilkinson 8df852bf71 Change default order of AutoConfigureOrder to 0
Previously, AutoConfigureOrder defaulted to Ordered.LOWEST_PRECEDENCE.
This made is impossible for an individual auto-configuration to
indicate that it wanted to go "last", i.e. after any
auto-configuration classes that didn't not specify an order, or
specified an order other than LOWEST_PRECEDENCE.

This commit changes to default to 0, allowing a single
 auto-configuration to easily indicate that it should go last.

 Closes gh-10142
7 years ago
Andy Wilkinson f49741e3ed Allow an operation to specify the media types that it produces
Closes gh-10118
7 years ago
Phillip Webb 80f023f996 Polish 7 years ago
Phillip Webb 9cb0a81e50 Polish adapt to and from Mono conversion
See gh-10112
7 years ago
Andy Wilkinson 7fc12bc8a3 Polish 7 years ago
Stephane Nicoll afda0ec129 Default Hibernate DDL auto to none with Flyway/Liquibase
This commit adds a strategy interface to specific if a given DataSource
has its schema managed. The Hibernate auto-configuration uses it to set
it to "none" if a mechanism to initialize the DataSource is
found and "create-drop" otherwise.

Both Flyway and Liquibase implements that strategy interface and
register it in the context accordingly.

Closes gh-9262
7 years ago
Andy Wilkinson 8babd5d4c5 Adapt to and from Mono when calling an operation on an endpoint
This commit adds support for adapting to and from Mono when calling
an operation on an endpoint.

When an endpoint is exposed using WebFlux, a call to a blocking
operation is adapted to return a Mono by dispatching the operation
invocation on a separate thread using Reactor's elastic scheduler.

When an endpoint is exposed using Jersey, a call to an endpoint that
returns a Mono is adapted to return the Mono's result by blocking
until it is available. Note that such adaptation is not necessary when
using Spring MVC as it supports Mono natively.

Closes gh-10112
7 years ago
Stephane Nicoll 75edca6e55 Merge pull request #10109 from izeye:polish-20170830
* pr/10109:
  Polish "Polish"
  Polish
7 years ago
Stephane Nicoll b91ceef621 Polish "Polish"
Closes gh-10109
7 years ago
Johnny Lim db76112700 Polish
See gh-10109
7 years ago
Phillip Webb 2c97d3a5e9 Polish 7 years ago
Madhura Bhave b02edd2e81 Merge branch '1.5.x' 7 years ago
Madhura Bhave 64ffcfc83f Document JWK property
Closes gh-10022
7 years ago
Stephane Nicoll 441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
7 years ago
Stephane Nicoll 54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
7 years ago
Stephane Nicoll 4c7088981f Add support for delete operations
This commit adds a `@DeleteOperation` annotation that can be used to
indicate that an endpoint's operation is meant to delete a resource.

Such operation is mapped to a DELETE http method.

Closes gh-10023
7 years ago
Stephane Nicoll 26b93e9454 Polish
See gh-10084
7 years ago
Stephane Nicoll 1897d76cda Merge branch '1.5.x' 7 years ago
Stephane Nicoll 8d7d044bef Merge pull request #10084 from pvorb:fix-incomplete-assertions
* pr/10084:
  Identify and fix incomplete assertions
7 years ago
Paul Vorbach 04ca7f137d Identify and fix incomplete assertions
Several calls to assertThat lacked a following assertion most often due
to wrong use of parenthesis.

See gh-10084
7 years ago
Stephane Nicoll 83eee7e65d Fix XA DataSource class name for Firebird
Closes gh-10102
7 years ago
Stephane Nicoll 6967846018 Merge pull request #10101 from izeye:thrown
* pr/10101:
  Remove unused ExpectedExceptions
7 years ago
Johnny Lim 118f65556f Remove unused ExpectedExceptions
Closes gh-10101
7 years ago
Stephane Nicoll 3ef3b40783 Rename EndpointType to EndpointExposure
Closes gh-10100
7 years ago
Phillip Webb f9e5b07eec Polish endpoint 7 years ago
Stephane Nicoll 98455e30dc Rename default endpoint settings to "default"
Closes gh-10098
7 years ago
Stephane Nicoll edd7cea1c3 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 36722510c5 Clarify that only production resources are filtered by Maven
See gh-10088
7 years ago
Stephane Nicoll f52003f9ed Merge branch '1.5.x' 7 years ago
Madhura Bhave d03b8e14f1 Fix Windows test failures 7 years ago
Madhura Bhave 919dfd3f90 Remove unused properties and constants
Since the autoconfig totally backs off in the presence
of a WebSecurityConfigurerAdapter, there is no need to
order them ahead of/after the one provided by Spring Boot.

See gh-7958
7 years ago
Stephane Nicoll f6134a8862 Polish 7 years ago
Stephane Nicoll 31f8aeaf8f Add rule to prevent imports on Guava
This commit makes sure that we don't import a class from the Guava
library by mistake as it provides various utility classes with similar
names as our own.

Closes gh-10089
7 years ago
Stephane Nicoll da65158eae Disable Jolokia by default
To be consistent with Actuator web endpoints, Jolokia is now disabled
by default.

Closes gh-10090
7 years ago
Stephane Nicoll def094b844 Advertize web endpoints as disabled by default
Following the rework on Security that expects web endpoints to be
disabled by default, this commit updates the metadata (including the
automatic generation) to reflect this decision.
7 years ago
Stephane Nicoll c76c16d92b Polish 7 years ago
Stephane Nicoll 53d855320b Clarify the required steps to build the documentation
Previously we didn't mention that the project must have been built
locally first (to get the sources for javadoc generation for instance).

This commit clarifies that.

Closes gh-10086
7 years ago
Stephane Nicoll 2cbffc329f Remove import on Guava
Closes gh-10085
7 years ago
Madhura Bhave 9b5e5f32e1 ClientId not always required for client credentials
Fixes gh-10013
7 years ago
Madhura Bhave 4990b52b72 Reinstate CloudFoundry support for actuators
Closes gh-9996
7 years ago
Madhura Bhave bacbe0459b Disable web endpoints by default
Since the handler interceptors have been removed, web endpoints
are all disabled by default to prevent accidental exposure of
sensitive information.

Closes gh-7958
7 years ago
Madhura Bhave e08ddbf838 Rework security autoconfiguration
This commit combines security autoconfigurations for
management endpoints and the rest of the application. By default,
if Spring Security is on the classpath, it turns on @EnableWebSecurity.
In the presence of another WebSecurityConfigurerAdapter this backs off
completely. A default AuthenticationManager is also provided with a user
and generated password. This can be turned off by specifying a bean of
type AuthenticationManager, AuthenticationProvider or UserDetailsService.

Closes gh-7958
7 years ago
Stephane Nicoll f60ad0df74 Polish 7 years ago
Stephane Nicoll 049df50f31 Add explicit dependency to ConnectionFactory auto-configurations
This commit makes sure tht `HealthIndicatorAutoConfiguration` runs after
any producers of a `ConnectionFactory` and not only ActiveMQ. This was
identified as part of #10081: `JmsAutoConfiguration` is actually the
one that isn't necessary (spring-boot-actuator has no import on the
`org.springframework.jms` and only `javax.jms.ConnectionFactory` is used
as part of the JMS health indicator.
7 years ago
Stephane Nicoll 498537b60e Merge pull request #10080 from izeye:unused-20170826
* pr/10080:
  Remove SystemPropertiesHandler.properties
7 years ago
Johnny Lim 9dd7184b6e Remove SystemPropertiesHandler.properties
Closes gh-10080
7 years ago