Commit Graph

3616 Commits (f4cc3ade88ceed3cd64c3bc19dbf046b95b90f49)

Author SHA1 Message Date
Phillip Webb 8c896d9376 Improve Reactive...Context thread safety
Refactor `ReactiveWebServerApplicationContext` to improve thread safety
by using a single manager object rather than then trying to synchronize
the `WebServer` and `HttpHandler`.

Closes gh-14666
6 years ago
Andy Wilkinson 76849c12e5 Merge branch '2.0.x' 6 years ago
Andy Wilkinson cf24d18139 Explicity set permissions on files in lib of Boot distribution
Previously, only the permissions for the scripts in bin/ were set. The
permissions for the files in lib/ were not explicity set, leaving them
with the same permissions as the source files in Gradle's cache. This
has proven to be a little brittle when building in certain
environments, leading to test failures. It also assumes that the
file permissions in Gradle's cache will be appropriate for entries in
a distribution archive. That may not always be a reasonable assumption
to make.

To avoid the above-described problems, this commit updates the copy
spec that's used to add files to lib/ in the archive so that each
file uses 0644 for its permissions.

Closes gh-14158
6 years ago
Andy Wilkinson 4a222cb4e5 Polish "Log a warning when using fallback for pid and log locations"
Closes gh-14519
6 years ago
Andreas Gebhardt 3f894cbeeb Log a warning when using fallback for pid and log locations
See gh-14519
6 years ago
Stephane Nicoll 5d0e812afe Merge branch '2.0.x' 6 years ago
Stephane Nicoll 1b10d3fcbf Fix missing metadata for nested POJO
This commit fixes missing descriptions and default values when
applicable for `management.server.ssl`, `server.compression`,
`server.http2`, `server.servlet.jsp`, `server.servlet.session` and
`server.ssl`.

Those nested namespace are managed by a POJO that is declared outside
of the module of the target @ConfigurationProperties type using it. As
a result, the annotation processor has no access to the source model and
can't extract the description and the default value, if any.

This commit migrates the misleading field-level Javadoc to manual meta
data for the time being.

Closes gh-14669
6 years ago
Stephane Nicoll d445ed7560 Merge branch '2.0.x' 6 years ago
Roland Weisleder d2a063b26a Clarify Javadoc of ConditionalOn annotations
Closes gh-14681
6 years ago
Andy Wilkinson da7daece08 Tolerate Integer values for port properties
Closes gh-14682
6 years ago
Andy Wilkinson b473f2996d Polish 6 years ago
Andy Wilkinson b4638b82d0 Prevent ApplicationListener that depends on EMF from creating a cycle
Previously, when an EntityManagerFactory was being initialized
synchronously, the DataSourceSchemaCreatedEvent would be published
during its initialization. This meant that an application listener that
depends on the EntityManagerFactory would create a dependency cycle if
it was a potential recipient of the event.

For the synchronous case, this commit moves the publication of the
event so that it occurs after the initialisation of the entity manager
factory. This allows an application listener that is a potential
recipient of the DataSourceSchemaCreatedEvent to depend on the
EntityManagerFactory without creating a cycle.

Closes gh-14651
6 years ago
Andy Wilkinson 7cbee701cd Allow user-provided ExecuteListenerProvider to go after Boot's
Closes gh-14598
6 years ago
Brian Clozel 7e4b22d25e Upgrade to Spring Framework 5.1.1 SNAPSHOTs
See gh-14677
6 years ago
Stephane Nicoll 00e122c7ec Merge branch '2.0.x' 6 years ago
Stephane Nicoll b4c5aea152 Fix detection of WebApplicationType with context class
Closes gh-14589
6 years ago
Johnny Lim 335775892b Polish
See gh-14667
6 years ago
Stephane Nicoll b4a8ad06de Merge branch '2.0.x' 6 years ago
Janne Valkealahti 26345d3900 Polish docs
This commit replaces tabs to spaces in a yaml example for configuring
endpoint web exposure include.

Closes gh-14670
6 years ago
Stephane Nicoll 84c8f38368 Merge branch '2.0.x' 6 years ago
Stephane Nicoll b248afc808 Clarify conversion system in Appendix
Closes gh-14645
6 years ago
Stephane Nicoll 42e6126066 Merge branch '2.0.x' 6 years ago
Stephane Nicoll 135797c347 Remove useless prerequisites section
Closes gh-14668
6 years ago
dreis2211 e68b9e8322 Remove unnecessary parameters for String.substring
Closes gh-14661
6 years ago
Phillip Webb 7087f90f2d Merge branch '2.0.x' 6 years ago
Phillip Webb bd9500290e Defer HttpHandler initialization
Update `ReactiveWebServerApplicationContext` so that the `HttpHandler`
bean is not longer created from `onRefresh`, but is instead created
only when the server starts.

Prior to this commit, the WebFlux hander would cause early
initialization of several beans, including Jackson Modules.

Closes gh-14666
6 years ago
Phillip Webb 7f35f8a982 Fix ConfigurationPropertyName.equals
Fix a regression in `ConfigurationPropertyName.equals` that was causing
incorrect results.

Closes gh-14665
6 years ago
Phillip Webb aa6a58d24c Merge branch '2.0.x' 6 years ago
Phillip Webb 7afde2ba43 Add another ConfigurationPropertyName.equals test
Include an additional test to ensure that `.equals` works for names
starting with the same value.

See gh-14665
6 years ago
Phillip Webb d76bba5e6f Migrate from ExpectedException rule to AssertJ
Replace ExpectedException JUnit rules with AssertJ exception
assertions.

Closes gh-14336
6 years ago
Phillip Webb 42cb0effc4 Merge branch '2.0.x' 6 years ago
Phillip Webb 3ff20b2440 Restore import-control checkstyle
Restore checkstyle import control and fix a few violations in the
process.

Closes gh-14660
6 years ago
Andy Wilkinson fcc73c6d88 Polish "Fix shellcheck warnings in CLI's bash script"
Closes gh-11458
6 years ago
leogtzr 69b844cb13 Fix shellcheck warnings in CLI's bash script
See gh-11458
6 years ago
Stephane Nicoll aaecdfb527 Deprecate Cassandra properties that require a default constructor
Closes gh-14473
6 years ago
Stephane Nicoll 068040e227 Register SpringBeanContainer with default Hibernate setup
Closes gh-13717
6 years ago
Stephane Nicoll 7bf32290c6 Update description of the `logger-name` hint
Closes gh-14456
6 years ago
Stephane Nicoll 3f9c41df81 Merge branch '2.0.x' 6 years ago
Rodolpho Couto e30f693699 Add reference to valiktor-spring-boot-starter
Closes gh-14514
6 years ago
Phillip Webb 2add65fe15 Polish Neo4J BookmarkManager auto-configuration
Closes gh-14568
6 years ago
Michael J. Simons b7847d98a7 Auto-configure Neo4J BookmarkManager when possible
Add `Neo4jBookmarkManagementConfiguration` which provides an instance
of `BookmarkManager` if necessary and Caffeine cache is on the
classpath. Depending on the kind of application, the `BookmarkManager`
will be request scoped or singleton, as recommended by Spring Data
Neo4j.

See gh-14568
6 years ago
Phillip Webb 94b366bc16 Make assertable context interfaces configurable
Update `Assertable*ApplicationContext` interfaces so that they also
extend the appropriate `Configurable*ApplicationContext` interface.

Closes gh-14650
6 years ago
Johnny Lim b079eeff1a Polish
Closes gh-14621
6 years ago
Stephane Nicoll 2d36a6f952 Merge branch '2.0.x' 6 years ago
Johnny Lim 1eca492c5e Polish
See gh-14621
6 years ago
Andy Wilkinson 121aad8397 Merge branch '2.0.x' 6 years ago
Andy Wilkinson da1fde6a5f Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson d145fab7e5 Merge branch '2.0.x' 6 years ago
Andy Wilkinson fd10226c54 Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 9735774b4a Merge branch '2.0.x' 6 years ago
Andy Wilkinson 62b481c7db Merge branch '1.5.x' into 2.0.x 6 years ago
Andy Wilkinson 726579a910 Merge branch '2.0.x' 6 years ago
Andy Wilkinson 89f5cfc5a4 Merge branch '1.5.x' into 2.0.x 6 years ago
Johnny Lim 1e756db966 Use Commons Logging for OnlyOnceLoggingDenyMeterFilter
Closes gh-14637
6 years ago
Andy Wilkinson 285f6bfd5f Merge branch '2.0.x' 6 years ago
jnizet eee07a840f Move away from deprecated Gradle configurations
Closes gh-14593
6 years ago
Johnny Lim 698bbd6a9e Polish
Closes gh-14597
6 years ago
Stephane Nicoll c403ac9db6 Merge branch '2.0.x' 6 years ago
Stephane Nicoll b6e5103dc4 Polish contribution
Closes gh-14592
6 years ago
Marten Deinum 77afe76ed5 Polish
The SpringBootContextLoader still checked if tests were annotated with
@IntegrationTest or @WebIntegrationTest. Those classes have been
removed in Spring Boot 1.5 and been deprecated since 1.4.

This commit removes the check on the annotations as well as the static
list of names.

See gh-14592
6 years ago
Andy Wilkinson f88ebf75cd Use Mongo 3.5.5 by default with Embedded mongo
Closes gh-14476
6 years ago
Andy Wilkinson 1a8f519922 Raise the default version of Mongo to 3.6.5 when using Embedded Mongo
While MongoDB 3.6.7 has been released, 3.6.5 is the latest version that's supported
by the version of Embedded Mongo that we're currently using.

Closes gh-14476
6 years ago
Hanope e5ed5ebf8b Fix "Query Parameters" section name
Closes gh-14600
6 years ago
Phillip Webb 64627fa9d6 Restore Maven 3.3 compatibility
Downgrade the `spring-boot-maven-plugin` maven version to 3.3.

Closes gh-14464
6 years ago
Phillip Webb a04e913c22 Make ResourceHandlerRegistrationCustomizer public
Make `ResourceHandlerRegistrationCustomizer` a public top level class.

Closes gh-14587
6 years ago
Phillip Webb ff98ba0fa5 Allow early OnWebApplication filtering
Update `OnWebApplicationCondition` to be an
`AutoConfigurationImportFilter` and filter out classes early.

Closes gh-13328
6 years ago
Phillip Webb 75bde00334 Generate auto-configuration OnWebApplication data
Update the auto-configuration annotation processor to generate
properties for `@OnWebApplication`.

See gh-13328
6 years ago
Phillip Webb c2f8398c06 Allow early OnBeanCondition filtering
Update `OnBeanCondition` to be an `AutoConfigurationImportFilter` and
filter out classes early.

See gh-13328
6 years ago
Phillip Webb 586507c49a Generate auto-configuration OnBean data
Update the auto-configuration annotation processor to generate
properties for `@ConditionalOnBean` and `@ConditionalOnSingleCandidate`.

See gh-13328
6 years ago
Phillip Webb e4f54a45be Add AutoConfigurationImportFilter base classes
Add `FilteringSpringBootCondition` base class and refactor the existing
`OnClassCondition` to use it. Also update the `match` method so that
the `autoConfigurationClasses` array may include `null` elements.

See gh-13328
6 years ago
Stephane Nicoll 5765ed00e8 Polish 6 years ago
Stephane Nicoll 19779951a1 Handle class not found
See gh-14575
6 years ago
Brian Clozel 0f11e69ca3 Upgrade to Micrometer 1.1.0-m.1
Closes #14567
6 years ago
Phillip Webb 84e72193b3 Remove automatic devtools web debug logging
Rework `DevToolsPropertyDefaultsPostProcessor` so that web logging no
longer defaults to `DEBUG`. The post processor now logs an info hint
to suggest the user configure the logging themselves.

Closes gh-14575
6 years ago
Andy Wilkinson 6e00d13d68 Polish 6 years ago
Andy Wilkinson 4c3e2d10d1 Auto-configure Micrometer's Elastic registry
Closes gh-14523
6 years ago
Andy Wilkinson 95ecbc736b Update example for disk space health indicator to use DataSize
See gh-14549
6 years ago
Stephane Nicoll 6145b3d278 Polish 6 years ago
Stephane Nicoll 831b0d7bdd Merge branch '2.0.x' 6 years ago
Stephane Nicoll 885948ce3b Polish 6 years ago
Stephane Nicoll da59d5c6d9 Polish 6 years ago
Stephane Nicoll 47f9379305 Adapt to changes in latest Micrometer snapshot
See gh-14522
6 years ago
Johnny Lim 3dc78d19bf Add log messages to lines only when the destination isn't set
Closes gh-14565
6 years ago
Johnny Lim f1552029ea Add @since in ApplicationContextInitializedEvent
Closes gh-14579
6 years ago
Stephane Nicoll 92afd041b0 Merge branch '2.0.x' 6 years ago
artsiom 7fb13d0dc2 Fix WebSocket web server customizer bean names
Closes gh-14582
6 years ago
Andy Wilkinson 8e9a93e5f3 Align SessionAutoConfigurationRedisTests with changes in Bean-RC1
See gh-14573
6 years ago
Andy Wilkinson 86c2b4a335 Upgrade to Spring Batch 4.1.0.RC1
Closes gh-14577
6 years ago
Andy Wilkinson d4942a11a8 Upgrade to Spring Session Bean-RC1
Closes gh-14573
6 years ago
Andy Wilkinson 977f8b4479 Auto-configure Micrometer's Kafka consumer metrics
Closes gh-14525
6 years ago
Andy Wilkinson 5196e138fa Upgrade to Spring Integration 5.1.0.RC1
Closes gh-14572
6 years ago
Andy Wilkinson 06d05684e5 Upgrade to Spring Kafka 2.2.0.RC1
Closes gh-14491
6 years ago
Andy Wilkinson 5d0a1ee0da Upgrade to Spring AMQP 2.1.0.RC1
Closes gh-14574
6 years ago
Andy Wilkinson ce75a585b1 Make spring-data-jdbc available to javadoc generation
See gh-14489
6 years ago
Andy Wilkinson cce693f708 Upgrade to Spring Security 5.1.0.RELEASE
Closes gh-14571
6 years ago
Andy Wilkinson ade79f7ded Fix duplicate section ID in the docs 6 years ago
Stephane Nicoll 9d46fee6db Merge branch '2.0.x' 6 years ago
Gary Russell 26c1e389df Polish RabbitMQ properties doc
Fix description for `prefetch`; remove reference to transactions since
the direct container does not support transactionSize.

Also fix `transactionSize` to just reference acks; autoConfiguration
doesn't support enabling transactions.

Closes gh-14569
6 years ago
Stephane Nicoll cbae22f0c9 Polish "Migrate size properties to DataSize"
Closes gh-14549
6 years ago
qct eb9f635004 Migrate size properties to DataSize
See gh-14549
6 years ago