Commit Graph

21208 Commits

Author SHA1 Message Date
Andy Wilkinson
f49741e3ed Allow an operation to specify the media types that it produces
Closes gh-10118
2017-08-31 13:56:15 +01:00
Phillip Webb
80f023f996 Polish 2017-08-30 15:48:18 -07:00
Phillip Webb
9cb0a81e50 Polish adapt to and from Mono conversion
See gh-10112
2017-08-30 15:38:05 -07:00
Andy Wilkinson
7fc12bc8a3 Polish 2017-08-30 17:34:07 +01:00
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
2017-08-30 12:42:24 +02:00
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
2017-08-30 10:53:07 +01:00
Stephane Nicoll
75edca6e55 Merge pull request #10109 from izeye:polish-20170830
* pr/10109:
  Polish "Polish"
  Polish
2017-08-30 10:42:08 +02:00
Stephane Nicoll
b91ceef621 Polish "Polish"
Closes gh-10109
2017-08-30 10:41:51 +02:00
Johnny Lim
db76112700 Polish
See gh-10109
2017-08-30 10:33:53 +02:00
Phillip Webb
2c97d3a5e9 Polish 2017-08-29 15:59:32 -07:00
Madhura Bhave
b02edd2e81 Merge branch '1.5.x' 2017-08-29 13:04:26 -07:00
Madhura Bhave
64ffcfc83f Document JWK property
Closes gh-10022
2017-08-29 12:51:14 -07:00
Stephane Nicoll
441dd2bc16 Move endpoints.trace.filter to management.trace.filter
Closes gh-10007
2017-08-29 17:09:19 +02:00
Stephane Nicoll
54781c73b5 Move endpoints.metrics.filter to management.metrics.filter
See gh-10007
2017-08-29 17:04:59 +02:00
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
2017-08-29 16:45:50 +02:00
Stephane Nicoll
26b93e9454 Polish
See gh-10084
2017-08-29 14:03:50 +02:00
Stephane Nicoll
1897d76cda Merge branch '1.5.x' 2017-08-29 14:00:23 +02:00
Stephane Nicoll
8d7d044bef Merge pull request #10084 from pvorb:fix-incomplete-assertions
* pr/10084:
  Identify and fix incomplete assertions
2017-08-29 13:57:35 +02:00
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
2017-08-29 13:49:28 +02:00
Stephane Nicoll
83eee7e65d Fix XA DataSource class name for Firebird
Closes gh-10102
2017-08-29 13:48:57 +02:00
Stephane Nicoll
6967846018 Merge pull request #10101 from izeye:thrown
* pr/10101:
  Remove unused ExpectedExceptions
2017-08-29 13:19:21 +02:00
Johnny Lim
118f65556f Remove unused ExpectedExceptions
Closes gh-10101
2017-08-29 13:19:04 +02:00
Stephane Nicoll
3ef3b40783 Rename EndpointType to EndpointExposure
Closes gh-10100
2017-08-29 11:50:27 +02:00
Phillip Webb
f9e5b07eec Polish endpoint 2017-08-29 11:32:39 +02:00
Stephane Nicoll
98455e30dc Rename default endpoint settings to "default"
Closes gh-10098
2017-08-29 11:27:35 +02:00
Stephane Nicoll
edd7cea1c3 Merge branch '1.5.x' 2017-08-29 10:14:33 +02:00
Stephane Nicoll
36722510c5 Clarify that only production resources are filtered by Maven
See gh-10088
2017-08-29 10:14:13 +02:00
Stephane Nicoll
f52003f9ed Merge branch '1.5.x' 2017-08-29 09:25:05 +02:00
Madhura Bhave
d03b8e14f1 Fix Windows test failures 2017-08-28 15:57:41 -07:00
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
2017-08-28 15:53:35 -07:00
Stephane Nicoll
f6134a8862 Polish 2017-08-28 11:38:10 +02:00
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
2017-08-28 10:31:20 +02:00
Stephane Nicoll
da65158eae Disable Jolokia by default
To be consistent with Actuator web endpoints, Jolokia is now disabled
by default.

Closes gh-10090
2017-08-28 10:18:19 +02:00
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.
2017-08-28 10:08:38 +02:00
Stephane Nicoll
c76c16d92b Polish 2017-08-28 09:59:32 +02:00
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
2017-08-28 09:19:52 +02:00
Stephane Nicoll
2cbffc329f Remove import on Guava
Closes gh-10085
2017-08-28 09:05:02 +02:00
Madhura Bhave
9b5e5f32e1 ClientId not always required for client credentials
Fixes gh-10013
2017-08-27 23:23:00 -07:00
Madhura Bhave
4990b52b72 Reinstate CloudFoundry support for actuators
Closes gh-9996
2017-08-27 23:15:19 -07:00
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
2017-08-27 23:15:18 -07:00
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
2017-08-27 23:15:18 -07:00
Stephane Nicoll
f60ad0df74 Polish 2017-08-27 14:25:59 +02:00
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.
2017-08-27 14:25:01 +02:00
Stephane Nicoll
498537b60e Merge pull request #10080 from izeye:unused-20170826
* pr/10080:
  Remove SystemPropertiesHandler.properties
2017-08-27 14:06:14 +02:00
Johnny Lim
9dd7184b6e Remove SystemPropertiesHandler.properties
Closes gh-10080
2017-08-27 14:05:55 +02:00
Brian Clozel
a9dc0d2963 Fix nio-multipart-parser version
See gh-9240
2017-08-26 11:49:28 +02:00
Stephane Nicoll
69faa7dd33 Remove useless cast
The number of nodes can be added to the details without the need to cast
it.

Closes gh-10078
2017-08-25 18:53:56 +02:00
Stephane Nicoll
a37a45921f Merge pull request #10077 from izeye:substring-20170825
* pr/10077:
  Avoid substring() invocation when the result is itself
2017-08-25 17:38:03 +02:00
Johnny Lim
4ae3691fee Avoid substring() invocation when the result is itself
Closes gh-10077
2017-08-25 17:37:56 +02:00
Brian Clozel
8198b87538 Add nio-multipart-parser to webflux starter
This library is required for parsing multipart requests asynchronously
in Spring WebFlux. Framework treats this as an optional dependency, but
Boot auto-configures multipart support with Servlet by default.

Closes gh-10073
2017-08-25 17:26:49 +02:00