1191 Commits

Author SHA1 Message Date
Stephane Nicoll
680ac85a2a Polish
See gh-16714
2019-05-04 09:13:46 +02:00
Madhura Bhave
07d6eb6397 Disable auditing infrastructure by default
Prior to this commit, the audit auto-configuration provided
an `InMemoryAuditEventRepository` bean. This commit changes the auto-config
so that an `AuditEventRepository` is not provided and instead the auto-config
is conditional on the presence of a `AuditEventRepository` bean. This is done
to encourage the use of a custom implementation of `AuditEventRepository`
since the in-memory one is quite limited and not suitable for production.
A flag is available if the auto-configuration needs to be turned off even
in the presence of a bean.

Closes gh-16110
2019-05-03 13:48:29 -07:00
Madhura Bhave
de128fed20 Disable HttpTrace infrastructure by default
Prior to this commit, the http trace auto-configuration provided
an `InMemoryHttpTraceRepository` bean. This commit changes the auto-config
so that an `HttpTraceRepository` is not provided and instead the auto-config
is conditional on the presence of a `HttpTraceRepository` bean. This is done
to encourage the use of a custom implementation of `HttpTraceRepository`
since the in-memory one is quite limited and not suitable for production.
A flag is available if the auto-configuration needs to be turned off even
in the presence of a bean.

Closes gh-15039
2019-05-03 12:00:37 -07:00
Stephane Nicoll
fc9cd86718 Merge branch '2.1.x' 2019-05-03 15:42:38 +02:00
Stephane Nicoll
51c0fdcab1 Polish "Document that JUnit 4 is the default"
Closes gh-16707
2019-05-03 15:41:44 +02:00
Tetsuya Hasegawa
e36ca923b9 Document that JUnit 4 is the default
See gh-16707
2019-05-03 14:41:54 +02:00
Andy Wilkinson
f35b91a172 Raise minimum supported version of Gradle to 4.10 and encourage use of 5.x
Closes gh-16681
2019-05-03 13:07:15 +01:00
Stephane Nicoll
8045bf1f50 Polish "Allow configuration of auto-timed metrics"
Closes gh-15988
2019-05-01 08:17:06 +02:00
Tadaya Tsuyukubo
4df6f5dee0 Allow configuration of auto-timed metrics
When `management.metrics.web.server.auto-time-requests` is enabled
(default=true), Spring Boot collects metrics on controller methods even
when they are not annotated with `@Timed`.

When this happens, created metrics are based on the default
`@Timed` configuration and there is no way to customize the
configuration of those auto-timed controller metrics.

This commit adds default configurations to auto-timed requests on both
client and server sides.

See gh-15988
2019-05-01 08:16:42 +02:00
Madhura Bhave
ffd979c2bb Document missing SpringApplication events
This commit also documents `ContextRefreshedEvent` and
`WebServerInitializedEvent`.

Closes gh-7382
2019-04-30 16:46:48 -07:00
Madhura Bhave
8b30ad21bb Merge pull request #16622 from Kedar Joshi
* pr/16622:
  Polish "Document use of @Profile with @ConfigurationProperties scanning"
  Document use of @Profile with @ConfigurationProperties scanning
2019-04-30 16:08:42 -07:00
Madhura Bhave
d4435e015c Polish "Document use of @Profile with @ConfigurationProperties scanning"
Closes gh-16622
2019-04-30 16:07:33 -07:00
Kedar Joshi
13b155eb2a Document use of @Profile with @ConfigurationProperties scanning
See gh-16612
2019-04-30 15:59:04 -07:00
Tetsuya Hasegawa
56c769f05c Remove redundant info
Closes gh-16668
2019-04-30 09:05:48 +02:00
Stephane Nicoll
05957689f4 Polish "Add jOOQ to SQL logging group"
Closes gh-16678
2019-04-30 08:57:32 +02:00
Stephane Nicoll
704da1750b Polish "Add support for Hazelcast YAML configuration"
Closes gh-16632
2019-04-29 15:16:43 +02:00
Brian Clozel
b527d364dc Reinstate single page reference documentation
This commit reinstates the single-page variant for the Spring Boot
reference documentation.

Now the single and multi-page variants are hosted under the same
`"html"` folder, as `"index.html"` and `"single-index.html"`.
Note that files ending in `"index.html`" are treated as index files by
the spring-doc-resources project and their table of contents do not
display a "Back to index" link.

Fixes gh-16295
2019-04-29 09:04:36 +02:00
Stephane Nicoll
9cde736b59 Merge branch '2.1.x' 2019-04-26 12:01:11 +03:00
Stephane Nicoll
3c5ec8a04c Merge branch '2.0.x' into 2.1.x 2019-04-26 11:53:02 +03:00
Stephane Nicoll
ac9ee952c7 Properly merge fix
See gh-16666
2019-04-26 11:52:25 +03:00
Phillip Webb
17aaf26590 Use consistent javadoc style for annotation links
Closes gh-13920
2019-04-24 19:37:59 -07:00
Stephane Nicoll
2cfcd2690e Polish "Allow to configure the Elasticsearch rest client timeouts"
Closes gh-15965
2019-04-18 11:17:44 +02:00
Andy Wilkinson
dacbb65fd7 Merge branch '2.0.x' into 2.1.x
Closes gh-16579
2019-04-16 15:47:17 +01:00
Andy Wilkinson
7260c0f2c4 Merge branch '1.5.x' into 2.0.x 2019-04-16 15:46:49 +01:00
Andy Wilkinson
4941217323 Update docs to reflect rename of @ConfigurationPropertiesDefaultValue
See gh-8762
2019-04-16 10:25:48 +01:00
Brian Clozel
b35424478b Deprecate Elasticsearch transport and Jest clients
As of Spring Data Moore, the Elasticsearch high level REST client is
supported for Spring Data repositories. The transport client is now
deprecated and is likely to be removed in a future Spring Data release.

This commit deprecates the transport client and marks all the associated
configuration properties as deprecated. The Spring Boot starter depends
on the `spring-data-elasticsearch` project, which now depends on both
transport client and high level REST client.

This commit also deprecates the Jest client, as Spring Boot will focus
on supporting the high level REST client and the reactive client
provided by Spring Data - both being in sync with the fast release pace
of Elasticsearch.

Closes gh-15008
2019-04-15 12:05:07 +02:00
Madhura Bhave
959e161555 Provide an option to use Spring's forwarded header support
Previously, if the `server.use-forward-headers` property
was set to true, X-Forwarded-* headers support was provided
at the server level. The property has been deprecated in favor
of `server.forward-headers-strategy` which can be also be configured
to use Spring's forwarded header support apart from native server support.

Closes gh-5677
2019-04-12 10:34:19 -07:00
Brian Clozel
b33944b53f Add RSocket server support with Spring Messaging
This commit adds support for RSocket server applications.
The auto-configuration will either add RSocket support to an existing
Reactor Netty server in a WebFlux application (as a WebSocket endpoint),
or bootstrap a brand new RSocket server instance.

Spring Boot will also auto-configure the Spring Messaging infrastructure
that supports Controller beans with `@MessageMapping` annotated methods.

Fixes gh-16021
2019-04-11 15:44:17 +02:00
Stephane Nicoll
5e58f4a8c6 Fix unresolved directives in generated documentation
Closes gh-16452
2019-04-11 14:31:41 +02:00
Stephane Nicoll
4d4566e0f9 Merge branch '2.1.x' 2019-04-11 13:55:34 +02:00
Adam Michalik
55987a51c7 Fix package of java.time.Duration in documentation
Closes gh-16527
2019-04-11 13:54:18 +02:00
Johnny Lim
4392d7c2ed Polish
Closes gh-16494
2019-04-10 08:03:18 +02:00
Madhura Bhave
7054a33e70 Add support for public key file for OAuth2 resource server
Closes gh-15814
2019-04-08 18:17:12 -07:00
Stephane Nicoll
cf1d6ca660 Polish "Add missing backquote"
Closes gh-16483
2019-04-08 09:46:28 +02:00
Kaze
530d3da6c9 Add missing backquote
See gh-16483
2019-04-08 09:46:12 +02:00
Madhura Bhave
ce0282406f Skip lazy init for beans that explicitly set lazy to false
This commit also adds tests to ensure that the child
management context works when lazy initialization is
enabled. Also, it adds a BeanFactoryPostProcessor to
the child context so that the server is created and
listening for requests but other beans in the child
context are not created until requested.

See gh-16184
2019-04-05 18:02:26 -07:00
Stephane Nicoll
bb4e559724 Let Hibernate detect the dialect to use
Closes gh-16172
2019-04-04 14:10:01 +02:00
Madhura Bhave
04517495af Merge branch '2.1.x' 2019-04-02 15:52:35 -07:00
Madhura Bhave
ddc52502f5 Document @MockBean behavior during context refresh
Closes gh-16333
2019-04-02 15:50:51 -07:00
Phillip Webb
2376f973f4 Merge branch '2.1.x' 2019-04-02 13:46:36 -07:00
Phillip Webb
47c6bf741d Merge branch '2.0.x' into 2.1.x 2019-04-02 13:40:21 -07:00
Phillip Webb
07c000c5b7 Merge branch '1.5.x' into 2.0.x 2019-04-02 13:34:28 -07:00
Andy Wilkinson
5e22b421c5 Merge branch '2.1.x' 2019-03-29 11:14:06 +00:00
Andy Wilkinson
6aa78801ff Merge branch '2.0.x' into 2.1.x 2019-03-29 11:13:53 +00:00
Andy Wilkinson
6507d1723d Merge branch '1.5.x' into 2.0.x 2019-03-29 11:02:56 +00:00
Johnny Lim
40d0d6b113 Polish
Closes gh-16299
2019-03-28 16:42:27 +01:00
Spring Operator
fb242c27d2 Use HTTPS for external links wherever possible
See gh-16276
2019-03-28 12:07:01 +00:00
Andy Wilkinson
878a635bfb Merge branch '2.1.x' 2019-03-28 11:48:47 +00:00
Spring Operator
9fc3ac7d49 Use HTTPS for external links wherever possible
See gh-16320
2019-03-28 09:49:30 +00:00
Andy Wilkinson
864942ad4f Merge branch '2.0.x' into 2.1.x 2019-03-28 09:35:53 +00:00