Commit Graph

21354 Commits (b32697b3cebdf2fa8b7e229fe60e2e9df7030984)

Author SHA1 Message Date
Andy Wilkinson b32697b3ce Add support to @ClassPathExclusions for excluding packages
Closes gh-36120
1 year ago
Moritz Halbritter cff26d9843 Merge branch '3.1.x'
Closes gh-36113
1 year ago
Moritz Halbritter 20321b5685 Merge branch '3.0.x' into 3.1.x
Closes gh-36112
1 year ago
Moritz Halbritter 2b398827de Add "baggage" section to tracing docs
Closes gh-34977
1 year ago
Andy Wilkinson 3ef1738a5e Remove containers after use in Docker Compose integration tests
Closes gh-36104
1 year ago
Andy Wilkinson 0b39429f96 Remove containers after use in Docker Compose integration tests
Closes gh-36104
1 year ago
Andy Wilkinson b5a131d966 Merge branch '3.1.x'
Closes gh-36100
1 year ago
Andy Wilkinson ba8b1717fb Merge branch '3.0.x' into 3.1.x
Closes gh-36099
1 year ago
Andy Wilkinson 79cd3a027a Merge branch '2.7.x' into 3.0.x
Closes gh-36098
1 year ago
Andy Wilkinson 9e1f2c4257 Tolerate Flway 9.20
Closes gh-36029
1 year ago
Andy Wilkinson 28af839dff Merge branch '3.0.x' into 3.1.x
Closes gh-36097
1 year ago
Andy Wilkinson b3c321e40c Polish javadoc of RestTemplateBuilder.requestFactory(Function)
Closes gh-36046
1 year ago
Andy Wilkinson a1a336ddd8 Merge branch '3.0.x' into 3.1.x
Closes gh-36095
1 year ago
Andy Wilkinson b2bc114d6f Update javadoc to link to non-deprecated ConstructorBinding
Closes gh-36045
1 year ago
Andy Wilkinson 2011c95c75 Merge branch '3.1.x'
Closes gh-36093
1 year ago
Eddú Meléndez 29ebaab0cb Use Selenium's bom
See gh-36077
1 year ago
Andy Wilkinson 98d459d76c Revert "Merge branch '3.1.x'"
See gh-36092
1 year ago
Andy Wilkinson 6851904651 Merge branch '3.1.x'
Closes gh-36092
1 year ago
Andy Wilkinson 9a57611ef5 Merge branch '3.0.x' into 3.1.x
Closes gh-36091
1 year ago
Andy Wilkinson ffbef7bb80 Test server.max-http-request-header-size with Undertow
Closes gh-36047
1 year ago
Andy Wilkinson dbb24286ff Separate stopping and destruction so web server can be restarted
Previously, when a Servlet-based WebServer was stopped it would also
stop the ServletContext. This led to problems as Tomcat and Undertow
would then not allow a restart. Jetty would allow a restart but
duplicate servlet registrations would then be attempted.

This commit modifies the WebServer lifecycle to separate stopping
and destruction for both servlet and reactive web servers. This
allows a WebServer's stop() implementation to leave some components
running so that they can be restarted. To completely shut down a
WebServer destroy() must now be called.

Both Tomcat and Jetty WebServers have been updated to stop their
network connections when stop() is called but leave other components
running. This works with both servlet and reactive web servers.

Note that an Undertow-based Servlet web server does not support
stop and restart. Once stopped, a Servlet Deployment cannot be
restarted and it does not appear to be possible to separate the
lifecycle of its network connections and a Servlet deployment.

Reactor Netty and Undertow-based reactive web servers can now also
be stopped and then restarted. Calling stop() stops the whole server
but this does not cause a problem as there's no (application-exposed)
ServletContext involved. There may be room to optimize this in the
future if the need arises.

Closes gh-34955
1 year ago
Scott Frederick 47cc65d912 Merge branch '3.1.x'
Closes gh-36056
1 year ago
Eddú Meléndez 321c526bf7 Add SslAutoConfiguration to slice test annotations
`SslAutoConfiguration` has been added to `cassandra`, `couchbase`,
`elasticsearch`, `mongo` and `redis` slice test annotations.

See gh-36038
1 year ago
Scott Frederick c32877493c Merge branch '3.1.x'
Closes gh-36055
1 year ago
Scott Frederick b9b314622f Merge branch '3.0.x' into 3.1.x
Closes gh-36054
1 year ago
Scott Frederick 4a3abdd7c3 Merge branch '2.7.x' into 3.0.x
Closes gh-36053
1 year ago
Johnny Lim 59d4bf97a1 Add Javadoc since to ImageReference.inTaglessForm()
See gh-36048
1 year ago
Scott Frederick 67725d4781 Merge branch '3.1.x'
Closes gh-36052
1 year ago
James Stansell ea41a22284 Fix typo in docker compose service connections note
See gh-36016
1 year ago
Scott Frederick 90dd7449bb Merge branch '3.1.x'
Closes gh-36051
1 year ago
Scott Frederick 92b2573a60 Merge branch '3.0.x' into 3.1.x
Closes gh-36050
1 year ago
Scott Frederick eeeb2ad72a Merge branch '2.7.x' into 3.0.x
Closes gh-36049
1 year ago
Johnny Lim 4a2c9d99dc Remove redundant Files.delete() calls in tests
See gh-35986
1 year ago
Scott Frederick 493987fc1a Allow key password to be set for a PemSslStoreBundle
Closes gh-35983
1 year ago
Andy Wilkinson b645eb32ac Remove deprecated code that was to be removed in 3.2
Closes gh-36034
1 year ago
Andy Wilkinson 357c67a999 Merge branch '3.1.x' 1 year ago
Andy Wilkinson 3f7fe25cb9 Merge branch '3.0.x' into 3.1.x
Closes gh-36044
1 year ago
Andy Wilkinson 2fae5de245 Merge branch '2.7.x' into 3.0.x
Closes gh-36043
1 year ago
Andy Wilkinson d2966e1cbf Polish "Replace calls to verifyComplete() to avoid indefinite blocking"
See gh-35915
1 year ago
ThomazPassarelli f9da30faf1 Replace calls to verifyComplete() to avoid indefinite blocking
See gh-35915
1 year ago
Moritz Halbritter 8f7fdc507e Polish CorrelationIdFormatter 1 year ago
Jonatan Ivanov 228b8eb8e4
Polish log correlation docs
Docs related to gh-33280 (log correlation) and
gh-35593 (application name in each log line) need some polishing:
- Fix project names
- Show how to avoid having the application name duplicated in logs
- Call out that a trailing space is needed in the correlation pattern

Closes gh-36035
See gh-33280
See gh-35593
1 year ago
Phillip Webb 493777d3c9 Include the application name on each log line when it is available
Update Logback and Log4J2 so that they include the application name on
each log line. If `spring.application.name` had not been set, or if
`logging.include-application-name` is `false` then the name is not
logged.

Closes gh-35593
1 year ago
Jonatan Ivanov c1b295fd71 Log correlation IDs when Micrometer tracing is being used
Add support for logging correlation IDs with Logback or Log4J2 whenever
Micrometer tracing is being used.

The `LoggingSystemProperties` class now accepts a defualt value resolver
which will be used whenever a value isn't in the environment. The
`AbstractLoggingSystem` provides a resolver that supports the
`logging.pattern.correlation` property and will return a value whenever
`LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` is set.

Using `LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY` allows us to
provide a consistent width for the correlation ID, even when it's
missing from the MDC.

The exact correlation pattern returned will depend on the `LoggingSytem`
implementation. Currently Logback and Log4J2 are supported and both
make use of a custom converter which delegates to a new
`CorrelationIdFormatter` class.

Closes gh-33280
1 year ago
Phillip Webb b6120d504a Replace LoggingSystemProperties constants with an Enum
Extract contants from `LoggingSystemProperty` and
`LogbackLoggingSystemProperties` in enum classes.

Closes gh-36015
1 year ago
Phillip Webb 3a796aedea Merge branch '3.1.x' 1 year ago
Phillip Webb 31f218c4e0 Merge branch '3.0.x' into 3.1.x 1 year ago
Phillip Webb 9db3c5a2f7 Polish 1 year ago
Phillip Webb 16265e925d Merge branch '3.1.x' 1 year ago
Phillip Webb 8ac5dc7ea3 Merge branch '3.0.x' into 3.1.x
Closes gh-36017
1 year ago