Commit Graph

5153 Commits (278cffffc5b192ead1ab5a1af226d835553f781d)

Author SHA1 Message Date
Phillip Webb 7f9d143e01 Polish documentation
Update reference documentation source to use consistent attribute names
and fix a few formatting issues.
5 years ago
Phillip Webb db26d9dc91 Fix EndpointRequest ignore logic
Fixup ignore logic in `EndpointRequest`.

See gh-18012
5 years ago
Phillip Webb 572e491465 Remove Gemfire starter details from documentation
Closes gh-18002
5 years ago
Phillip Webb dbccb705a8 Clarify "Web Application Conditions" documentation
Update the reference documentation so that "Web Application Conditions"
also covers reactive contexts.

Closes gh-18005
5 years ago
Phillip Webb 5938ca78b6 Fix request matcher management context support
Fix caching issues in `ApplicationContextRequestMatcher` and allow
subclasses to ignore an application context entirely. Update existing
matcher implementations so that they deal with the management context
correctly.

Prior to this commit, the `ApplicationContextRequestMatcher` would
return a context cached from the first request. It also didn't
provide any way to ignore a context. This meant that if the user was
running the management server on a different port the matching results
could be inconsistent depending on if the first request arrived on
the regular context or the management context. It also meant that we
could not distinguish between the regular context and the management
context when matching.

Closes gh-18012
5 years ago
dreis2211 b6fff67f6e Remove reference to non-existent --edit option in CLI docs
See gh-18015
5 years ago
Phillip Webb 64d4bf823a Reformat documentation to one sentence per line
Update reference documentation to use one sentence per line formatting
as recommended by the Asciidoctor team.

Closes gh-12445
5 years ago
Ben Hale 2a04d94cf1 Use exec when launching the JVM in CLI's shell script
Previously, when the Spring Boot CLI ran the Java command line for an
application it did a straight invocation which suppressed propagation of
signals to the JVM in certain circumstances (e.g within Docker containers).

This change prepends the command with exec which causes the Java process to
replace the script process in a shell ensuring that signals are propagated to
the Java process without suppression.

See gh-17976

Signed-off-by: Ben Hale <bhale@pivotal.io>
5 years ago
dreis2211 26a22fa523 Test the Gradle Plugin against Gradle 5.6.1
See gh-17984

Closes gh-17984
5 years ago
Andy Wilkinson 9961647c7f Improve handling of reserved characters in MetaInfResourceManager
Previously, MetaInfResourceManager that we use with Undertow to serve
static resources from jar's META-INF/resources did not correctly
handle characters in the path that should be percent-encoded when
used in a URL.

This commit updates MetaInfResourceManager to encode the path before
it is used to create a URL. Prior to this encoding, encoded slashes
(%2F) are decoded as, unlike other encoded characters in the request's
URL, encoded slashes are not decoded prior to calling the
ResourceManager.

Fixes gh-17853
5 years ago
Madhura Bhave 674f2f5a6c EndpointRequest should match @ServletEndpoint
This commit also changes the request matcher for MVC
endpoints to use an AntPathRequestMatcher instead of an
MvcRequestMatcher. The endpoint is always available
under the mapped endpoint path and this way the same matcher
can be used for both MVC and Jersey.

Fixes gh-17912

Co-authored-by: Phillip Webb <pwebb@pivotal.io>
5 years ago
leoli 34d28f48ca Fix Undertow access log dir property name in doc
See gh-17968
5 years ago
Phillip Webb 4c446c38a6 Only add management error page for Spring MVC
Move management `ErrorPage` registration from the
`WebMvcEndpointChildContextConfiguration` to
`WebMvcEndpointChildContextConfiguration` and only add it when the
error controller is registered.

Fixes gh-17938
5 years ago
Madhura Bhave 28d374d84d Polish "Configure Issuer Validator for Resource Server"
See gh-17952
5 years ago
HaiTao Zhang b3d189cf87 Configure Issuer Validator for Resource Server
See gh-17952
5 years ago
Andy Wilkinson 608228d617 Improve handling of non-standard status codes in WebClient metrics
Fixes gh-17695
5 years ago
Andy Wilkinson 52050c173c Fix spying on scoped beans with @SpyBean
Previously, when spying on a scoped bean the creation of the spy
would be performed using the scoped proxy. This would result in
the spy being unable to spy on any of the target bean's methods as
the scoped proxy's implementations of those methods would be final.

This commit updates MockitoPostProcessor so that the creation of the
spy and injection of the @SpyBean-annotated field is performed using
the scoped target. The scoped target has not be proxied so this
allows Mockito to spy on all of its methods.

Closes gh-17817
5 years ago
Andy Wilkinson 0fb0eb6e5b Deprecate jackson.version in favour of new jackson-bom.version
The versions of Jackon's bom and the versions of Jackson are often
not the same. For example, at the time of writing, the latest bom
version is 2.9.9.20190807 but the latest version of Jackson's core
is 2.9.9 and the latest version of Jackson's databind is 2.9.9.3.

spring-boot-dependencies using a property, jackson.version, to control
the version of jackson-bom that is imported. To make it clear that the
version property controls the version of Jackson's bom and not of
Jackson itself, this commit deprecates jackson.version in favour of
a new jackson-bom.version property.

An additional benefit of this change is that it addresses a problem
when using Gradle and the dependency management plugin. Jackson's bom
uses a jackson.version property to control the version
of core Jackson modules. This names clashes with the name of the
property used by spring-boot-dependencies. Specifying a custom
jackson.version to control the version of the bom that is imported
would also have the unwanted side-effect of customizing the version of
the core Jackson modules declared in Jackson's bom.

Fixes gh-17808
5 years ago
Andy Wilkinson ac0a22d603 Tolerate LCEMFB with null JpaVendorAdapter in JPA auto-config
Closes gh-17935
5 years ago
Andy Wilkinson abe3d38527 Fix OoM error when starting Tomcat with max int load on startup
Fixes gh-17927
5 years ago
Andy Wilkinson ab87b2a39b Polish 5 years ago
lijuny d33ed84f1f Remove redundant code
See gh-17875
5 years ago
Filip Hrisafov 1ebbe9fc55 Map non-null LDAP properties
The userDn and password in LdapContextSource are not nullable. The
default values for userDn and password in LdapProperties are null. When
the values are set to null there will eventually be a
NullPointerException during
AbstractContextSource#setupAuthenticatedEnvironment since HashTable
doesn't allow null for values.

See gh-17861
5 years ago
Madhura Bhave 0187e5106d Polish "Set up SpringLiquibase beans' dependencies by type rather than name"
See gh-17805
5 years ago
Andrii Hrytsiuk b69f9e9fdf Add missing javadoc
See gh-17805
5 years ago
Andrii Hrytsiuk eaad22dd89 Set up SpringLiquibase beans' dependencies by type rather than name
See gh-17805
5 years ago
dreis2211 56940fca97 Test the Gradle Plugin against Gradle 5.6
See gh-17876
5 years ago
Madhura Bhave 8d7deb7b67 Polish "Expand documentation on remote devtools"
See gh-17780
5 years ago
Sergei Petunin ab33bc7deb Expand documentation on remote devtools
See gh-17780
5 years ago
Madhura Bhave 3515ec1f29 Support relaxed binding for properties before environment is prepared
Fixes gh-17843
5 years ago
Stephane Nicoll fcf4680626 Polish "Document how to add metadata for collection and enum default values"
Closes gh-12874
5 years ago
Stephane Nicoll 7aea432e3e Promote dependency management plugin version to the bom
Closes gh-17842
5 years ago
Stephane Nicoll 25aecfeb35 Upgrade to Jackson 2.9.9.20190807
Closes gh-17698
5 years ago
Madhura Bhave 38d36ab18d Document how to add metadata for collection and enum default values
Closes gh-12874
5 years ago
Stephane Nicoll 56c2a52ea4 Polish "Fix syntax errors in docs"
Closes gh-17835
5 years ago
dreis2211 2e32af4737 Fix syntax errors in docs
See gh-17835
5 years ago
Madhura Bhave 47a9bb1c0e Document that auto-configuration classes are not public API
Closes gh-16704
5 years ago
Madhura Bhave 1b62a05c40 Document Prometheus Pushgateway support
Closes gh-16853
5 years ago
Madhura Bhave 541d3c4853 Fix typo 5 years ago
Stephane Nicoll 1b3a6d1616 Polish "Configure a temporary directory with Undertow"
See gh-17778
5 years ago
Andy Chen 0388f954af Configure a temporary directory with Undertow
See gh-17778
5 years ago
Stephane Nicoll 994f08d234 Polish "Fix annotation lookup on proxied EndpointExtension"
See gh-17807
5 years ago
Jacques-Etienne Beaudet 9083da2876 Fix annotation lookup on proxied EndpointExtension
See gh-17807
5 years ago
Stephane Nicoll 94184ae38b Upgrade to Spring Security 5.1.6
Closes gh-17794
5 years ago
陈其苗 77931a0981 Fix typo in assertion
See gh-17774
5 years ago
Stephane Nicoll 766b6c394f Upgrade to Rxjava2 2.2.11
Closes gh-17675
5 years ago
Stephane Nicoll b1d298fdef Upgrade to Johnzon Jsonb 1.1.13
Closes gh-17786
5 years ago
Madhura Bhave 5e52fedbac Upgrade to Spring Session Bean-SR7
Closes gh-17581
5 years ago
Stephane Nicoll 134c534cc1 Upgrade to Spring Kafka 2.2.8
Closes gh-17645
5 years ago
Stephane Nicoll 1e74e294ae Upgrade to Spring AMQP 2.1.8
Closes gh-17641
5 years ago
Stephane Nicoll 236efd2cf4 Upgrade to Spring Integration 5.1.7
Closes gh-17643
5 years ago
Stephane Nicoll 9938c18968 Upgrade to Spring Data Lovelace-SR10
Closes gh-17353
5 years ago
Stephane Nicoll b15674d71e Upgrade to Spring HATEOAS 0.25.2
Closes gh-17777
5 years ago
Madhura Bhave faaada1416 Remove liquibase check change log location
Missing change logs would lead to an exception even
if the checkChangeLogLocation was set to false. Spring Boot's check
would pass but Liquibase would fail later making this property redundant.

Fixes gh-16232
5 years ago
Stephane Nicoll eb26492eef Polish 5 years ago
Stephane Nicoll bacb4d1715 Polish "Refine back-off strategy of Neo4j SessionFactory"
See gh-17662
5 years ago
Michael Simons 274098f2e2 Refine back-off strategy of Neo4j SessionFactory
This commit separates the auto-configuration of the `SessionFactory` in
an isolated class so that the rest of the auto-configuration is still
applied if the user provides a custom `SessionFactory` bean.

See gh-17662
5 years ago
Stephane Nicoll 308a5e9360 Fix bean name for reactive Cassandra health indicator
Closes gh-17763
5 years ago
Stephane Nicoll cdec8a9b46 Upgrade to Spring Framework 5.1.9
Closes gh-17351
5 years ago
Madhura Bhave 80f568bd47 Clarify RestTemplateBuilder rootUri documentation
Closes gh-15343
5 years ago
Madhura Bhave 5f3364326b Configure interceptors for WelcomePageHandlerMapping
Fixes gh-16309
5 years ago
Stephane Nicoll f2fd169c3a Rename restClient to elasticsearchRestClient
For consistency, similar beans have been renamed as well.

Closes gh-17751
5 years ago
Stephane Nicoll 1ec8e822a1 Fix broken build 5 years ago
Stephane Nicoll fb0fccf3c7 Polish "Create RestClient from a RestHighLevelClient if available"
This significantly rework the auto-configuration to reflect the order
in which things are expected. Rather than keeping a conceptual cycle
between the builder and the two inner classes that are processed first,
the configuration is now split in three parts:

* The builder that is required and common
* The configuration when the HighLevelClient is available
* The RestClient configuration when that's not the case

See gh-17488
5 years ago
Dmytro Nosan 0e87b9c163 Create RestClient from a RestHighLevelClient if available
See gh-17488
5 years ago
Madhura Bhave 96235ea674 Fix ordering of JSON property source relative to servlet sources
Fixes gh-17652
5 years ago
Stephane Nicoll 0c560795fd Harmonize settings.gradle documentation in Gradle getting started guide
See gh-17736
5 years ago
Dave Syer e7b0450a7f Add missing repositories to snapshot configuration
See gh-17736
5 years ago
Stephane Nicoll f9e809b00e Upgrade to Undertow 2.0.23.Final
Closes gh-17676
5 years ago
Stephane Nicoll dc4e67f5dd Remove useless classpath override 5 years ago
Stephane Nicoll 34ee27d0b7 Upgrade to Lettuce 5.1.8.RELEASE
Closes gh-17700
5 years ago
Stephane Nicoll fe515a301d Upgrade to Reactor Californium-SR10
Closes gh-17639
5 years ago
Tomas Aschan 1b172dc4fe Clarify documentation about specifying main class
See gh-17003
5 years ago
Phillip Webb 73efce6306 Upgrade to Undertow 2.0.22.Final
Closes gh-17676
5 years ago
Phillip Webb d7ee504ee0 Only include our own mime mappings in Undertow
Update `UndertowServletWebServerFactory` so that only our own mime type
mappings are included. Prior to this commit both our mime mappings and
Undertow's default mime mappings would always be included.

Fixes gh-17687
5 years ago
Stephane Nicoll c76133eb22 Upgrade to Xmlunit2 2.6.3
Closes gh-17686
5 years ago
Stephane Nicoll 42942ac076 Upgrade to Spring Cloud Connectors 2.0.6.RELEASE
Closes gh-17685
5 years ago
Stephane Nicoll 9af85534c1 Upgrade to Postgresql 42.2.6
Closes gh-17684
5 years ago
Stephane Nicoll 0620a21cc1 Upgrade to Pooled Jms 1.0.6
Closes gh-17683
5 years ago
Stephane Nicoll 7c499b1d01 Upgrade to Jolokia 1.6.2
Closes gh-17682
5 years ago
Stephane Nicoll e11d180e2e Upgrade to Janino 3.0.15
Closes gh-17681
5 years ago
Stephane Nicoll ddf84ac685 Upgrade to Tomcat 9.0.22
Closes gh-17680
5 years ago
Stephane Nicoll 1f901d398b Upgrade to Byte Buddy 1.9.16
Closes gh-17679
5 years ago
Stephane Nicoll 1afcf5291d Upgrade to Mysql 8.0.17
Closes gh-17678
5 years ago
Stephane Nicoll fd7ed9c8be Upgrade to Joda Time 2.10.3
Closes gh-17677
5 years ago
Stephane Nicoll 77317a44d8 Upgrade to Rxjava2 2.2.10
Closes gh-17675
5 years ago
Stephane Nicoll eb6a160c13 Upgrade to Netty 4.1.38.Final
Closes gh-17674
5 years ago
Stephane Nicoll 487aab4f0a Upgrade to Appengine Sdk 1.9.76
Closes gh-17673
5 years ago
Stephane Nicoll 6356852e2f Polish "Log health check failure with Reactive health indicators"
See gh-17635
5 years ago
Dmytro Nosan fe1b9c9501 Log health check failure with Reactive health indicators
See gh-17635
5 years ago
Stephane Nicoll b79de1e7e3 Fix broken build 5 years ago
Stephane Nicoll dd5d55a2d8 Start building against Spring Kafka 2.2.8 snapshots
See gh-17645
5 years ago
Stephane Nicoll 4b6b5fc160 Start building against Spring Integration 5.1.7 snapshots
See gh-17643
5 years ago
Stephane Nicoll aa5630b0e0 Start building against Spring AMQP 2.1.8 snapshots
See gh-17641
5 years ago
Stephane Nicoll ac4dcfbf9a Improve detection of NoSuchMethodError cause
Closes gh-17649
5 years ago
Stephane Nicoll 9e8649ccca Start building against Reactor Californium snapshots
See gh-17639
5 years ago
Dmytro Nosan efce9388e7 Trim OAuth2 provider property whitespace
Update `OAuth2ClientPropertiesRegistrationAdapter` to trim whitespace
of the "provider" property.

See gh-17497
5 years ago
Phillip Webb fb1dd8fe93 Merge branch '2.0.x' into 2.1.x 5 years ago
Phillip Webb 913e831f4e Merge '1.5.x' into 2.0.x 5 years ago
Stephane Nicoll 057ca8f6a8 Polish "Clarify description of "logging.file.max-history""
See gh-17567
5 years ago
lihongmingming 00a5528d7f Clarify description of "logging.file.max-history"
See gh-17567
5 years ago
Stephane Nicoll 30fe10613d Improve how to configure configuration keys of a custom starter
Closes gh-17573
5 years ago
Stephane Nicoll 300f07b2a8 Polish 5 years ago
Stephane Nicoll 3c7ac4fe7f Polish 5 years ago
Stephane Nicoll 1661da8774 Polish "Configure ActiveMQConnectionFactory properly without spring-jms"
See gh-17531
5 years ago
Dmytro Nosan 77b52b993b Configure ActiveMQConnectionFactory properly without spring-jms
See gh-17531
5 years ago
dreis2211 c2b6939ae1 Cover more known Java versions in JavaVersion
See gh-17590
5 years ago
Andy Wilkinson 74f0e42c98 Make it clearer when there will be no auto-configured MessageSource
Closes gh-17485
5 years ago
Stephane Nicoll 8eb6886388 Fix code formating 5 years ago
Stephane Nicoll e6a5895c05 Start build against Spring Session Bean snapshots
See gh-17581
5 years ago
Stephane Nicoll 32e00d5dd2 Start building against Spring Data Lovelace snapshots
See gh-17353
5 years ago
Stephane Nicoll 1d4e9cb6a4 Start building against Spring Framework 5.1 snapshots
See gh-17351
5 years ago
Stephane Nicoll b8d92cb0ae Fix @DataJdbcTest to be transactional as advertized
Closes gh-17513
5 years ago
Stephane Nicoll 5903e9a57a Polish 5 years ago
dreis2211 43833c7bf0 Remove unused java-statsd-client dependencies
See gh-17508
5 years ago
Andy Wilkinson 591250f75e Polish "Hide loader classes from Tomcat's ServletContext resource paths"
See gh-17538
5 years ago
adavid9 a81325bbbc Hide loader classes from Tomcat's ServletContext resource paths
See gh-17538
5 years ago
Andy Wilkinson b725c60177 Deprecate DeploymentInfo customization with reactive Undertow
Fixes gh-17555
5 years ago
Phillip Webb 30b5ba87ae Merge branch '2.0.x' into 2.1.x 5 years ago
Phillip Webb fd67f7ba3f Merge branch '1.5.x' into 2.0.x 5 years ago
Stephane Nicoll b6ca1eadeb Fix prefix for datasource metrics
Closes gh-17553
5 years ago
Andy Wilkinson 9dabc0e14d Cleared deferred lines after each test
Previously, DeferredLinesWriter would collect MockMvc output from
every test that has executed. If a test eventually failed, the
output from every test up to including the one that had failed would
be output, rather than just the output for the test that has just
failed.

This commit clears the deferred lines after each test, thereby
ensuring that when a failure occurs only the lines from the failing
test are output.

Fixes gh-17551
5 years ago
Stephane Nicoll a64317b114 Fix broken link to Spring Integration metrics section
Closes gh-17543
5 years ago
Andy Wilkinson e84477cfe2 Only perform Quartz DataSource init when using JDBC store
Fixes gh-17545
5 years ago
dreis2211 e9203a280c Test the Gradle Plugin against Gradle 5.5.1
See gh-17496
5 years ago
Madhura Bhave aebb60d8b8 Fix tests
Setting the log file name to a random value in smoke tests
doesn't work because the logger context has already been initialized.
5 years ago
Madhura Bhave 773dda3d55 Log file location should be evaluated just once
Using a random value for the logfile name caused
the logfile endpoint to return a 404 as the name
was resolved from the environment on every request.
This commit registers a bean for LogFile which is then
used by the logfile endpoint.

Fixes gh-17434
5 years ago
Dmytro Nosan 93d0427fb5 Polish AbstractDependsOnBeanFactoryPostProcessor
See gh-17480
5 years ago
Andy Wilkinson f753c31988 Polish "Set up MongoClient beans' dependencies by type rather than name"
See gh-16627
5 years ago
ielatif 39f1039425 Set up MongoClient beans' dependencies by type rather than name
See gh-16627
5 years ago
Andy Wilkinson 80650f485d Polish "Allow depended on beans to be identified by type"
See gh-17020
5 years ago
Dmytro Nosan 9923ffe9bd Allow depended on beans to be identified by type
Prior to this commit, `AbstractDependsOnBeanFactoryPostProcessor`
could only identify depended on beans by name.

See gh-17020
5 years ago
Stephane Nicoll 852f4a280c Fix supported java version range in documentation
Closes gh-17476
5 years ago
Andy Wilkinson 6748b20863 Prevent JUL loggers from being GCed once their level has been set
Fixes gh-17217
5 years ago
Stephane Nicoll 3fb15a502b Remove outdated reference to Guava in the reference guide
Closes gh-17446
5 years ago
Andy Wilkinson acd9b61c8e Make Batch JPA auto-configuration back off without a DataSource
Fixes gh-17465
5 years ago
Andy Wilkinson c5241f0e82 Remove accidental usage of com.hazelcast.util.Base64
Closes gh-17461
5 years ago
Andy Wilkinson 02bea78229 Retain as much Batch auto-config as possible without Spring JDBC
Closes gh-17451
5 years ago
Andy Wilkinson a023f308ed Make JDBC-based batch configurer back off without a DataSource
Closes gh-17449
5 years ago
Andy Wilkinson 7f85aba546 Auto-configure Data Mongo if user provides MongoDbFactory but no client
Previously, if a user defined a MongoDbFactory bean but did not define
a client bean, MongoDataAutoConfiguration would back off leaving the
context without a MongoTemplate, etc.

This commit reworks the auto-configuration so that only the
auto-configuration of a MongoDbFactory is dependent on the existence
of a Mongo client bean. Auto-configuration of the other components
that depend on a MongoDbFactory will now continue in the absence of a
Mongo client bean.

Closes gh-17416
5 years ago
Andy Wilkinson 7553b60e68 Test the Gradle Plugin against Gradle 5.5
Closes gh-17428
5 years ago
Phillip Webb 2f88dd735e Polish 5 years ago
Phillip Webb cd5f40aec2 Validate onFailure returned binding results
Update `ValidationBindHandler` so that any non-null result returned by
the parent `onFailure` method triggers re-validation.

Fixes gh-17421
5 years ago
Phillip Webb d641a1e23a Polish BindHandler javaodc 5 years ago
Andy Wilkinson 82fd4ce9b9 Fix empty context path warning when using Jetty with WebFlux
Previously, the context path was set to an empty string. The led to
Jetty logging a warning about an empty context path and then using
/ instead.

This commit avoids the warning while leaving the context path's end
result unchanged by setting the context path to /.

Closes gh-17399
5 years ago
Andy Wilkinson e57579461a Prevent endpoint's shutdown() method from being a destroy method
Closes gh-17407
5 years ago
Andy Wilkinson 5997886897 Add dependency management for Infinispan's Spring 5 modules
This commit adds dependency management for Infinispan's Spring 5
modules that are introduced in 9.4.9.Final. It also removes redundant
exclusions for the dependency management for its Spring 4 modules.

Closes gh-17346
5 years ago
Phillip Webb 206ba2ad86 Append chars not ints in getLettersAndDigits
Update `StringToEnumIgnoringCaseConverterFactory` so that the
`getLettersAndDigits` method correctly appends `char` elements
rather than `int` elements.

Closes gh-17327
5 years ago
Phillip Webb 88b6a3308c Escape additional '{reference}' elements in asciidoc
Escape lines that look like variable references but should actually be
included verbatim.

Closes gh-17386
5 years ago
Phillip Webb a81f37dd68 Escape '{reference}' elements in asciidoc files
Escape lines that look like variable references but should actually be
included verbatim.

Closes gh-17386
5 years ago