Commit Graph

23551 Commits

Author SHA1 Message Date
Stephane Nicoll 5058259897 Upgrade Java 13 version in CI image
Closes gh-18277
2019-09-19 08:51:44 +02:00
Andy Wilkinson d2b28ceba5 Don't add -Xverify:none to JVM args when running on Java 13
Closes gh-17008
2019-09-18 21:51:41 +01:00
Brian Clozel ce2c26e934 Use Reactor's new Schedulers.boundedElastic()
Prior to this commit, Spring Boot would use `Schedulers.elastic()` when
required to process blocking tasks in a reactive environment.
reactor/reactor-core#1804 introduced a new scheduler,
`Schedulers.boundedElastic()` that behaves quite similarly but:

* will limit the number of workers thread
* will queue tasks if no worker thread is available and reject them is
the queue is exceeds a limit

This allows Spring Boot to schedule blocking tasks as before and allows
greater flexibility.

Fixes gh-18269
See gh-18276
2019-09-18 22:17:07 +02:00
Andy Wilkinson 9377b9a9e4 Support -- and # by default as Quartz datasource init comment prefixes
Closes gh-17435
2019-09-18 20:38:16 +01:00
Andy Wilkinson bf56b24ca5 Merge pull request #11779 from rajadilipkolli
* gh-11779:
  Use try-with-resources in HttpTunnelPayload

Closes gh-11779
2019-09-18 17:51:39 +01:00
rajadilipkolli abcff3a3b3 Use try-with-resources in HttpTunnelPayload
See gh-11779
2019-09-18 17:49:24 +01:00
Andy Wilkinson 9d3586d0b8 Test DatabaseDriver.ORACLE now it's available from Maven Central
Closes gh-18274
2019-09-18 17:08:18 +01:00
Andy Wilkinson dce9d3da82 Add dependency management for Oracle's JDBC driver
Closes gh-18242
2019-09-18 17:06:42 +01:00
Andy Wilkinson b1307d4917 Merge pull request #18262 from aclement
* gh-18262:
  Add Graal checks ahead of some interactions with ClassLoader methods

Closes gh-18262
2019-09-18 09:59:00 +01:00
Andy Clement 4fecefe149 Add Graal checks ahead of some interactions with ClassLoader methods
See gh-18262
2019-09-18 09:58:33 +01:00
Andy Wilkinson b15e427a3e Improve handling of non-standard status codes in WebFluxTags
Closes gh-18267
2019-09-18 09:52:39 +01:00
Andy Wilkinson 6534047fcf Rework test slice annotation javadoc to reflect JUnit 5 default
Closes gh-18178
2019-09-17 17:32:29 +01:00
Andy Wilkinson 0a2ae89470 Merge pull request #18249 from AlexFalappa
* gh-18249:
  Fix typos in HealthContributors definition

Closes gh-18249
2019-09-17 12:39:02 +01:00
Alessandro Falappa 38fb16a79d Fix typos in HealthContributors definition
See gh-18249
2019-09-17 12:38:33 +01:00
Andy Wilkinson 5ea994d955 Merge pull request #18248 from AlexFalappa
* gh-18248:
  Remove duplicated row from HealthIndicators table

Closes gh-18248
2019-09-17 12:37:23 +01:00
Alessandro Falappa 4aa186d6e5 Remove duplicated row from HealthIndicators table
See gh-18248
2019-09-17 12:36:51 +01:00
Andy Wilkinson c662c404c5 Do not enable H2C by default when using Reactor Netty
Previously, Reactor Netty was the only embedded server that enabled
H2C by default. This commit updates the factory to only enable HTTP/2
when SSL has also been configured, aligning it with Jetty, Tomcat,
and Undertow.

If H2C is required, it can be enabled using a NettyServerCustomizer:

@Bean
NettyServerCustomizer h2cCustomizer() {
    return (httpServer) ->
           httpServer.protocol(HttpProtocol.HTTP11, HttpProtocol.H2C);
}

Closes gh-17867
2019-09-17 10:57:24 +01:00
Andy Wilkinson d5adbbb626 Split appendices into multiple pages and include a ToC in each
Closes gh-16289
2019-09-17 09:44:40 +01:00
Stephane Nicoll 81ddebbc27 Merge branch '2.1.x'
Closes gh-18239
2019-09-16 15:12:38 +02:00
Stephane Nicoll 9434cb0e22 Keep a live reference of protocol resolvers rather than copying them
This commit makes sure that any subsequent call on addProtocolResolver
on the context will impact the ResourceLoader implementation that
DevTools sets on the context.

This makes sure that any custom ProtocolResolver that is set later in
the lifecycle is taken into account.

Closes gh-17214
2019-09-16 15:08:40 +02:00
Stephane Nicoll b3b6605713 Merge branch '2.1.x'
Closes gh-18236
2019-09-16 14:23:26 +02:00
Stephane Nicoll a642421661 Force creation of sources jar
Closes gh-18212
2019-09-16 14:22:26 +02:00
Andy Wilkinson 448f5b8650 Simplify error page config by dropping redundant support for Tomcat 7
Closes gh-17937
2019-09-16 11:48:02 +01:00
Andy Wilkinson 84b2438c4c Upgrade to Jersey 2.29.1
Closes gh-17430
2019-09-16 11:32:02 +01:00
Andy Wilkinson cc67213b1f Correct capitalization of GemFire in the reference docs
Closes gh-18001
2019-09-16 11:28:50 +01:00
Andy Wilkinson 6f20ba9550 Remove mention of Spring IO Platform from reference docs
Closes gh-17986
2019-09-16 11:22:36 +01:00
Phillip Webb ad32603635 Restore compatibility with MockRestServiceServer
Closes gh-17885
2019-09-16 10:17:41 +02:00
Stephane Nicoll 3d5530d15d Merge branch '2.1.x'
Closes gh-18234
2019-09-16 10:03:19 +02:00
leoli a0d2721e33 Use custom port for RSocket server over websocket
Prior to this change, the custom port configured for the RSocket
server would not be used if the server factory is using the
websocket transport and is provided with a custom
`ReactorResourceFactory`.

Fixes gh-18200
2019-09-16 09:53:10 +02:00
Stephane Nicoll 9065c4997d Fix rebase from master 2019-09-16 09:52:55 +02:00
Stephane Nicoll ece29bbdfc Merge pull request #18214 from leonard84
* pr/18214:
  Polish Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter"
  Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter

Closes gh-18214
2019-09-16 09:46:01 +02:00
Stephane Nicoll e05f42f0f3 Polish Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter"
See gh-18214
2019-09-16 09:44:01 +02:00
Leonard Brünings b9c8d7dd60 Add Testable to CLASS_ANNOTATIONS in TestTypeExcludeFilter
See gh-18214
2019-09-16 09:42:55 +02:00
Stephane Nicoll f06c2503b7 Merge pull request #18151 from eddumelendez
* pr/18151:
  Polish "Add ROLLING_FILE_NAME_PATTERN for File Appender"
  Add ROLLING_FILE_NAME_PATTERN for File Appender

Closes gh-18151
2019-09-16 09:28:30 +02:00
Stephane Nicoll a0d7d52106 Polish "Add ROLLING_FILE_NAME_PATTERN for File Appender"
See gh-18151
2019-09-16 09:28:15 +02:00
Eddú Meléndez 4a3810a0f1 Add ROLLING_FILE_NAME_PATTERN for File Appender
This new property allows to customize `fileNamePattern` if it is set.
Otherwise, a default pattern remains. Also, new property is supported
`logging.pattern.rolling-file-name`.

See gh-18151
2019-09-16 09:15:59 +02:00
Phillip Webb 06f46baa9d Build against Spring Framework 5.2.0 snapshots
See gh-18232
2019-09-13 16:22:13 -07:00
Andy Wilkinson 2e6f15b6f3 Fix intermittent failure of inMemoryDerbyIsShutdown 2019-09-13 20:50:24 +01:00
Andy Wilkinson 1b237de5f5 Use Awaitility in our own tests
Closes gh-18227
2019-09-13 20:50:14 +01:00
Andy Wilkinson 568caa1206 Add dependency management for Awaitility
Closes gh-18205
2019-09-13 18:02:50 +01:00
Andy Wilkinson 47eee7bec8 Merge branch '2.1.x'
Closes gh-18226
2019-09-13 18:00:25 +01:00
Andy Wilkinson b1ca1ae6e9 Add missing dependency management for Janino modules
Closes gh-18225
2019-09-13 17:59:59 +01:00
Andy Wilkinson b9bb84236b Restore compatibility with Flyway 5.2
Previously, the upgrade to Flyway 6 broke compatibility with Flyway
5.2 due to the use of method references that refer to two methods
that do not exist in Flyway 5.2.

This commit replaces the method references with lambdas that are only
called if the user sets the related property. Unless a new-in-Flyway-6
property is set, the auto-configuration will work as before. When such
a property is set the auto-configuration will fail with a
NoSuchMethodError. This approach was chosen to make the
incompatibility clear.

We have also introduced support for passing any JavaMigration beans
in the context into Flyway. This too relies on API that is new in
Flyway 6. It is possible (although unlikely) that users had
JavaMigration beans in Spring Boot 2.1 that were being ignored. This
commit restores this behaviour when using Flyway 5.2.

Closes gh-18193
2019-09-13 10:26:59 +01:00
Stephane Nicoll b5589f8abe Merge branch '2.1.x'
Closes gh-18222
2019-09-13 09:06:50 +02:00
Stephane Nicoll 8aa7e24981 Merge pull request #18216 from ptrsauer
* pr/18216:
  Fix minor typo

Closes gh-18216
2019-09-13 09:06:16 +02:00
Peter Sauer dba18ce778 Fix minor typo
The phrase `We have you covered.` is a sentence and so it should start
with a capital `W`.

See gh-18216
2019-09-13 09:05:54 +02:00
Phillip Webb 8e398e164c Fix checkstyle violations 2019-09-12 15:23:32 -07:00
Phillip Webb eea5d15412 Merge branch '2.1.x'
Closes gh-18219
2019-09-12 15:11:13 -07:00
Phillip Webb 23174eb484 Remember annotations when using withExistingValue
Update `Bindable` builder methods so that existing annotations are
retained.

Closes gh-18218
2019-09-12 15:09:47 -07:00
Stephane Nicoll c2023a8c90 Merge pull request #18206 from izeye
* pr/18206:
  Polish "Use Duration for ServerProperties.Jetty.idleTimeout"
  Use Duration for ServerProperties.Jetty.idleTimeout

Closes gh-18206
2019-09-12 15:22:16 +02:00