Commit Graph

2340 Commits (9b1660a111c6ab0df51249e5416f6f62a437d339)

Author SHA1 Message Date
Phillip Webb 08c4d03649 Fix LocalCacheVerifier include tags
Fixes gh-25567
4 years ago
Phillip Webb 05cf7fbb04 Use new backend features for extracted samples
Update extracted samples to make use of code folding and chomping.

See gh-6313
4 years ago
Andy Wilkinson ed72bca6c8 Provide more pluggable way to indicate DataSource init dependencies
Closes gh-17619
Closes gh-25559
4 years ago
Andy Wilkinson 99b7d29c2c Merge branch '2.4.x' 4 years ago
Andy Wilkinson 9be36f3a72 Merge branch '2.3.x' into 2.4.x 4 years ago
Phillip Webb 6e5c510e0a Migrate to asciidoctor-spring-backends
Migrate to the snapshot version of asciidoctor-spring-backends.

See gh-25553
4 years ago
Phillip Webb 3bb9b2300e Polish asciidoc markup 4 years ago
Stephane Nicoll bb0f43cf07 Allow JMX endpoint ObjectNames to be customized
Closes gh-25317
4 years ago
Andy Wilkinson 006cb643ea Merge branch '2.4.x'
Closes gh-25514
4 years ago
Andy Wilkinson 2f95c1e2c8 Merge branch '2.3.x' into 2.4.x
Closes gh-25513
4 years ago
Andy Wilkinson 22b73f3020 Polish "Improve documentaion of Mockito test execution listeners"
See gh-25375
4 years ago
cdalexndr 72562e0fd4 Improve documentaion of Mockito test execution listeners
See gh-25375
4 years ago
Andy Wilkinson 2cffbc90cb Merge branch '2.4.x'
Closes gh-25511
4 years ago
Andy Wilkinson 836ad76df1 Merge branch '2.3.x' into 2.4.x
Closes gh-25510
4 years ago
Andy Wilkinson 92133d47d0 Polish "Make link to Actuator API docs more prominent"
See gh-25486
4 years ago
cdalexndr 5f4e1b747e Make link to Actuator API docs more prominent
See gh-25486
4 years ago
Madhura Bhave 37dcb90876 Merge branch '2.4.x'
Closes gh-25502
4 years ago
Madhura Bhave ae630e03ce Warn against using multi-document files with TestPropertySource
Closes gh-24945
4 years ago
Madhura Bhave e1904fb72f Merge branch '2.4.x'
Closes gh-25500
4 years ago
Madhura Bhave cfac223cff Document configtree support for Docker secrets
Closes gh-25095
4 years ago
Stephane Nicoll 9db78022bd Merge branch '2.4.x'
Closes gh-25464
4 years ago
Stephane Nicoll 63cca9b8c6 Polish "Document precedence between properties and yaml"
See gh-25300
4 years ago
Robert Smith 20ed8c2ec3 Document precedence between properties and yaml
See gh-25300
4 years ago
izeye c823f44e76 Polish
See gh-25451
4 years ago
Andy Wilkinson 9713bfc765 Enable the logging shutdown hook by default
This commit updates LoggingApplicationListener to register the logging
shutdown hook by default.

The hook is detrimental in a war deployment as it may pin parts of an
application in memory after it has been undeployed. For this reason,
the hook is still disabled by default in war deployments. This is
achieved by setting an attribute on the servlet context in
SpringBootServletInitializer that is then consumed via the Environment
by LoggingApplicationListener.

Closes gh-25046
4 years ago
Madhura Bhave a8592f36d4 Add prefix support for property source
We configure the `SystemEnvironmentPropertySource` as a `Prefixed` property
source. When adapting this to a `ConfigurationPropertySource, a
`PrefixedConfigurationPropertySource` will be created for it.
A `PrefixedConfigurationPropertySource` will resolve property
such as `foo.bar` to `my.foo.bar` for a prefix of `my`.

Closes gh-3450
4 years ago
Stephane Nicoll 9e3cfc5d7a Merge branch '2.4.x'
Closes gh-25432
4 years ago
John Blum cec4d45cf6 Fix grammatical error in documentation
See gh-25411
4 years ago
Andy Wilkinson f09630f73c Allow additional keys to be configured for value sanitization
Closes gh-25384
4 years ago
Andy Wilkinson 10ef991e1d Sanitize sensitive portion of the value of url and urls keys
Closes gh-25387
4 years ago
Stephane Nicoll d9dcfeba5c Polish "Add more customization options for InfluxDB"
See gh-25319
4 years ago
Stephane Nicoll 808e58265f Merge branch '2.4.x'
Closes gh-25372
4 years ago
Stephane Nicoll 9e6302ee6a Merge branch '2.3.x' into 2.4.x
Closes gh-25371
4 years ago
Tommy Ludwig bd2a890899 Polish HTTP client metrics documentation wording
See gh-25353
4 years ago
Phillip Webb a1dc107144 Update copyright year of changed files 4 years ago
Andy Wilkinson df5f59127a Support Jetty 10
Closes gh-24886
4 years ago
Madhura Bhave d69565cf3e Merge branch '2.4.x'
Closes gh-25346
4 years ago
Madhura Bhave 52a15647a9 Polish "Remove old documentation relating to yaml and profiles"
See gh-24620
4 years ago
Ramiro Aparicio 93f822e7b6 Remove old documentation relating to yaml and profiles
See gh-24620
4 years ago
Andy Wilkinson 2f83a6714b Rework DataSource initialization
Previously, DataSource initialization was triggered via a
BeanPostProcessor or a schema created event from JPA. This caused
numerous problems with circular dependencies, bean lifecycle, etc and
added significant complexity.

This commit reworks DataSource initialization to remove the use of a
BeanPostProcessor entirely. In its place, DataSource initialization is
now driven by an InitializingBean with dependency relationships
between beans ensuring that initialization has been performed before
the DataSource is used. This aligns with the approach that's worked
well with Flyway and Liquibase.

More changes are planned to further simplify DataSource initialization.
The changes in this commit are a foundation for those changes. Any new
public API in this commit is highly likely to change before the next
GA.

Fixes gh-13042
Fixes gh-23736
4 years ago
Stephane Nicoll 9bc4f8ede1 Polish "Group jdbc-related batch properties beneath spring.batch.jdbc"
See gh-25316
4 years ago
Stephane Nicoll b50fb824a3 Merge branch '2.4.x'
Closes gh-25298
4 years ago
Stephane Nicoll a9ff33f74f Merge branch '2.3.x' into 2.4.x
Closes gh-25297
4 years ago
Stephane Nicoll 569002e917 Polish "Document Kafka Streams metrics support"
See gh-25272
4 years ago
izeye dff4ca2293 Document Kafka Streams metrics support
See gh-25272
4 years ago
Stephane Nicoll 8c0c30e7a8 Polish "Add support to auto-configure javax.jms.ExceptionListener"
See gh-25278
4 years ago
Stephane Nicoll ca9b583c7d Merge branch '2.4.x'
Closes gh-25271
4 years ago
izeye f48893def5 Polish 4 years ago
Madhura Bhave c05cb21ab7 Add a property to disable the `/actuator` discovery page
Closes gh-24693
4 years ago
Stephane Nicoll dca643500a Polish "Make Scheduler consistent for Spring Integration"
See gh-25109
4 years ago
Artem Bilan c5491cfdd7 Make Scheduler consistent for Spring Integration
Currently Spring Integration creates its own `TaskScheduler` bean if one
does not exist in the context yet. When we add `@EnableScheduling`,
Spring Boot auto-configures one for us, but this one comes with slightly
different options than the default in Spring Integration.

This commit makes sure that Spring Integration reuses the
auto-configured TaskScheduler if possible, regardless of the user
opting-in for `@EnabledScheduling`.

See gh-25109
4 years ago
Andy Wilkinson 6521d39867 Merge branch '2.4.x'
Closes gh-25143
4 years ago
Andy Wilkinson caa9249987 Merge branch '2.3.x' into 2.4.x
Closes gh-25142
4 years ago
Andy Wilkinson 7898b6afb0 Remove duplicate publication from spring-boot-docs
Fixes gh-25132
4 years ago
Stephane Nicoll a9a8d3a167 Merge branch '2.4.x'
Closes gh-25137
4 years ago
izeye 63ee99bf75 Polish
See gh-25093
4 years ago
Stephane Nicoll ee59f644ed Merge branch '2.4.x'
Closes gh-25136
4 years ago
Stephane Nicoll b2818680fd Polish "Clarify usage of BufferingApplicationStartup"
See gh-25075
4 years ago
Oleg Sukhov 853dbc3de3 Clarify usage of BufferingApplicationStartup
See gh-25075
4 years ago
Phillip Webb 23ebf017c0 Extract code samples from docs
See gh-6313
4 years ago
Phillip Webb 0e326d6b0f Extract some code samples from docs
See gh-6313
4 years ago
Phillip Webb e0392c4558 Add additional dependencies for example code
Add additional dependencies useful for the example code.

See gh-6313
4 years ago
Phillip Webb 9f6f2d36df Polish documented application logged output
Update the documented application output based on the latest version.
4 years ago
Phillip Webb b2a51e4504 Polish asciidoctor formatting 4 years ago
Phillip Webb ae1be76cce Add pending-extract attribute to source
Add `pending-extract=true` to source blocks to help us identify
those that need to be extracted to a real source file.

See gh-6313
4 years ago
Phillip Webb 073f8c4b23 Polish spring-boot-docs
See gh-25089
4 years ago
Phillip Webb 2a85427324 Refine spring-boot-docs package restructure
Refine the package restructure started in 91ccc23462 to help provide
a solid foundation for code snippets. This commit renames many of the
classes so that they no longer end in `Example`. It also removes some
of the inner types that were previously used. Many tag comments have
also been moved to ensure that `import` statements are available in
the docs.

Closes gh-25089
4 years ago
Phillip Webb 91ccc23462 Restructure spring-boot-docs packages
Restructure the packages in `spring-boot-docs` so that they mirror
the documentation sections. There are now three main packages:
`springbootfeatures`, `productionreadyfeatures` and `howto`. Each
of the main packages has a subpackage named after the section headings.

Example code now uses consistent `// tag::` names and imports are
applied using `[tag=*]` whenever possible.

Test snippets have been moved to `src/main/java` so that only a single
import attribute needs to be defined.

Closes gh-25089
4 years ago
Andy Wilkinson db781a0d84 Merge branch '2.4.x'
See gh-25077
4 years ago
Andy Wilkinson 788a42d694 Merge branch '2.3.x' into 2.4.x
See gh-25076
4 years ago
Andy Wilkinson 67479b6380 Add junit-platform-launcher dependency by convention
Closes gh-25074
4 years ago
Phillip Webb d8b6960997 Merge branch '2.4.x'
Closes gh-25077
4 years ago
Phillip Webb 257608a3a3 Merge branch '2.3.x' into 2.4.x
Closes gh-25076
4 years ago
Phillip Webb 939b5dfc26 Add junit-platform-launcher dependency
Update `build.gradle` files to ensure that `junit-platform-launcher` is
a `testRuntimeOnly` dependency. This ensures that tests can be run from
Eclipse.

Closes gh-25074
4 years ago
Madhura Bhave c73e3cc2dc Update documentation for layered wars
Closes gh-22821
Closes gh-22195
4 years ago
Phillip Webb 0104ee677e Merge branch '2.4.x'
Closes gh-25067
4 years ago
Phillip Webb 57f1f17320 Merge branch '2.3.x' into 2.4.x
Closes gh-25066
4 years ago
Phillip Webb 187258aa6a Fix classpath.idx format documentation
Since 2.3.8 and 2.4.2 the format includes the directory.

Closes gh-24856
4 years ago
Phillip Webb d6eb1eb5ae Merge branch '2.4.x'
Closes gh-25065
4 years ago
Phillip Webb 9ac5151932 Merge branch '2.3.x' into 2.4.x
Closes gh-25064
4 years ago
Phillip Webb 19c5864d2c Clarify square bracket map binding notation
Update reference docs to make it clearer when the square bracket map
binding notation should be used.

Closes gh-23390
4 years ago
Phillip Webb 99d400f302 Merge branch '2.4.x'
Closes gh-25062
4 years ago
Phillip Webb d7c44e4503 Merge branch '2.3.x' into 2.4.x
Closes gh-25061
4 years ago
Phillip Webb 549d4f7fbe Document that Spring MVC has own ConversionService
Update documentation to make it clearer that Spring MVC does not use the
`ApplicationConversionService` unless configured explicitly.

Closes gh-22718
4 years ago
Andy Wilkinson 82b90d5749 Merge branch '2.4.x'
Closes gh-25052
4 years ago
Andy Wilkinson a3058200cb Merge branch '2.3.x' into 2.4.x
Closes gh-25050
4 years ago
dreis2211 4940694db2 Fix duplicate anchor id
See gh-25048
4 years ago
Phillip Webb f6097e7da4 Merge branch '2.4.x'
Closes gh-25045
4 years ago
Phillip Webb 2d056525d8 Merge branch '2.3.x' into 2.4.x
Closes gh-25044
4 years ago
Phillip Webb c03d8773e7 Improve logging.register-shutdown-hook docs
Update the "Logging" reference documentation with a section about
shutting down the logging system.

Closes gh-24507
4 years ago
Phillip Webb 479180fdf9 Merge branch '2.4.x'
Closes gh-25041
4 years ago
Phillip Webb c86ee4c851 Merge branch '2.3.x' into 2.4.x
Closes gh-25040
4 years ago
Phillip Webb 5b2d1f19a0 Polish 'Add note about exploded jars and banner properties'
See gh-24982
4 years ago
Robert Smith 33c038199d Add note about exploded jars and banner properties
Add a note to the "Customizing the Banner" explaining that you need
to be using the `JarLauncher` to use the `application.*` properties.

See gh-24982
4 years ago
Phillip Webb 802da9dc87 Merge branch '2.4.x'
Closes gh-25039
4 years ago
Phillip Webb 53f1aab833 Merge branch '2.3.x' into 2.4.x
Closes gh-25038
4 years ago
Phillip Webb 60bb33f231 Polish 'Add a tip about actuator endpoints'
See gh-24336
4 years ago
Wesley Ugang 6ced1d7f4e Add a tip about actuator endpoints
Update the "Externalized Configuration" section with a tip that about
the actuator `env` and `configprops` endpoints.

See gh-24336
4 years ago
Hatef Palizgar 53c1e79810 Change info endpoint to be secure and unexposed by default
See gh-24715
4 years ago
dreis2211 d4eccb7715 Upgrade to Groovy 3.0.7
See gh-24946
4 years ago
Stephane Nicoll 012a199773 Remove Spring Data Solr support
In preparation to the upgrade to Spring Data 2021.0, this commit removes
auto-configuration for Spring Data Solr.

Closes gh-24939
4 years ago
Stephane Nicoll 85729d2a8a Merge branch '2.3.x' into 2.4.x
Closes gh-24943
4 years ago
Stephane Nicoll 10b4cb8cb5 Deprecate Spring Data Solr support
Closes gh-24942
4 years ago
Stephane Nicoll 600be08225 Merge branch '2.4.x'
Closes gh-24855
4 years ago
Stephane Nicoll 7ec7569939 Merge branch '2.3.x' into 2.4.x
Closes gh-24854
4 years ago
Stephane Nicoll b3ab77a5c3 Move Spring Boot version to main index in reference guide
Closes gh-24848
4 years ago
Stephane Nicoll 1a2a3d6598 Merge branch '2.4.x' 4 years ago
Stephane Nicoll e8ae18ae11 Polish
See gh-24837
4 years ago
Stephane Nicoll a18f01addf Remove bitronix support
See gh-24806
4 years ago
Brian Clozel 4dd60684c9 Merge branch '2.4.x'
Closes gh-24844
4 years ago
Brian Clozel 6f51831001 Fix docs on probe state during graceful shutdown
This commit improves the "Application lifefycle and Probes states"
section and underlines the difference between `AvailabilityState` and
the availability of Probes over HTTP.

Closes gh-24843
4 years ago
Stephane Nicoll 0897af0dfa Add customizer for jOOQ's configuration
This commit adds a customizer hook point for jOOQ's configuration. When
such a bean is present, it is invoked with the auto-configuration
`Configuration`. This effectively supersedes checking for a number of
jOOQ `*Provider`beans. The existing beans are still honoured, in a
deprecated fashion.

Closes gh-24732
4 years ago
Stephane Nicoll 1d30a4716e Merge branch '2.4.x'
Closes gh-24708
4 years ago
Stephane Nicoll b8a1869569 Merge branch '2.3.x' into 2.4.x
Closes gh-24707
4 years ago
Stephane Nicoll 826d79be3e Clarify behaviour of WebServerFactory in reference guide
Closes gh-24705
4 years ago
Phillip Webb 42e649debe Merge branch '2.4.x'
Closes gh-24682
4 years ago
Phillip Webb 04616a01cf Merge branch '2.3.x' into 2.4.x
Closes gh-24681
4 years ago
Phillip Webb ef09982b39 Merge branch '2.2.x' into 2.3.x
Closes gh-24680
4 years ago
Phillip Webb 25033ee5e7 Migrate away from pivotal-legacy/homebrew-tap
Update reference documentation to the new spring-io/homebrew-tap repo.

Closes gh-24659
4 years ago
Stephane Nicoll 2547a9e255 Merge branch '2.4.x'
See gh-24655
4 years ago
Stephane Nicoll c014bb9880 Merge branch '2.3.x' into 2.4.x
See gh-24647
4 years ago
Stephane Nicoll 67d1f355d7 Fix Nullable reference
See gh-24647
4 years ago
Stephane Nicoll b3278f459e Merge branch '2.4.x'
See gh-24655
4 years ago
Stephane Nicoll 4e6f15a466 Merge branch '2.3.x' into 2.4.x
See gh-24647
4 years ago
Stephane Nicoll 2bd78355dc Reference javax.annotation.Nonnull support in reference guide
See gh-24647
4 years ago
Andy Wilkinson 77652961cd Merge branch '2.4.x'
Closes gh-24650
4 years ago
Andy Wilkinson 89f29c933f Merge branch '2.3.x' into 2.4.x
Closes gh-24649
4 years ago
dreis2211 fe3217d2c4 Exclude starters from Javadoc aggregation
See gh-24648
4 years ago
Stephane Nicoll 63444ae957 Merge branch '2.4.x'
Closes gh-24627
4 years ago
Stephane Nicoll 052565ef2b Merge branch '2.3.x' into 2.4.x
Closes gh-24626
4 years ago
dreis2211 261b7a5b18 Update copyrights to 2021
See gh-24625
4 years ago
Stephane Nicoll 1a2577a07e Fix sample formatting 4 years ago
Stephane Nicoll 1fd17cf641 Add support for Elasticsearch sniffer
Closes gh-24174
4 years ago
Stephane Nicoll 1e8d5c37ed Merge branch '2.4.x'
Closes gh-24607
4 years ago
izeye 5e3f618f9d Polish
See gh-24604
4 years ago
Stephane Nicoll e3d7ab0e3b Merge branch '2.3.x' into 2.4.x 4 years ago
Stephane Nicoll d0a1c49873 Polish
See gh-24604
4 years ago
Madhura Bhave b29ac37db6 Add docs about using InMemoryOAuth2AuthorizedClientService
Closes gh-24596
4 years ago
Madhura Bhave d36c950e33 Merge branch '2.4.x'
Closes gh-24595
4 years ago
Madhura Bhave a0afec120d Add docs about using InMemoryOAuth2AuthorizedClientService
Closes gh-24313
4 years ago
Madhura Bhave 467f853641 Merge branch '2.4.x'
Closes gh-24593
4 years ago
Madhura Bhave a714ba44ea Update documentation containing examples of WebSecurityConfigurerAdapter
Closes gh-24551
4 years ago
Stephane Nicoll 1f71927a9f Merge branch '2.3.x' into 2.4.x
Closes gh-24587
4 years ago
Stephane Nicoll 9e5a6c5228 Harmonize references to ActiveMQ Artemis
Closes gh-24586
4 years ago
Justin Bertram 99b43cb690 Allow to configure ActiveMQ Artemis with a broker url
See gh-24302
4 years ago
Madhura Bhave 13a06e4eca Merge branch '2.4.x' 4 years ago
Madhura Bhave af67e6fa54 Merge branch '2.3.x' into 2.4.x 4 years ago
Madhura Bhave b82f5a408a Add a note about disabling git info
See gh-24205
4 years ago
Madhura Bhave 15a56f81df Merge branch '2.4.x'
Closes gh-24573
4 years ago
Madhura Bhave f9d1a4526c Merge branch '2.3.x' into 2.4.x
Closes gh-24572
4 years ago
Madhura Bhave a5c8b84511 Update version of git-properties plugin in the docs
Closes gh-24567
4 years ago
Madhura Bhave acbe18cf85 Merge branch '2.4.x'
Closes gh-24571
4 years ago
Madhura Bhave c231f3da10 Merge branch '2.3.x' into 2.4.x
Closes gh-24570
4 years ago
Madhura Bhave 302ba77812 Improve documentation regarding git commit info
Closes gh-24205
4 years ago
Phillip Webb 07348066e3 Merge branch '2.4.x' 4 years ago
Phillip Webb f568aa489c Fixup title anchors 4 years ago
Madhura Bhave 9aa1b528df Merge branch '2.4.x'
Closes gh-24566
4 years ago
Madhura Bhave 01537bc54f Merge branch '2.3.x' into 2.4.x
Closes gh-24565
4 years ago
Madhura Bhave c9a09cf6a9 Clarify when SpEL expressions in application properties are evaluated
Closes gh-24531
4 years ago
Madhura Bhave 86d64c727d Merge branch '2.4.x'
Closes gh-24564
4 years ago
Madhura Bhave 55d9951d90 Merge branch '2.3.x' into 2.4.x
Closes gh-24563
4 years ago
Madhura Bhave 1db271c2c5 Reorder documentation about building images
Closes gh-24560
4 years ago
Andy Wilkinson 4040105629 Merge branch '2.4.x'
Closes gh-24519
4 years ago
Andy Wilkinson a67edfbeb7 Merge branch '2.3.x' into 2.4.x
Closes gh-24518
4 years ago
Andy Wilkinson 76198f9a8d Include properties from test-autoconfigure in config props appendix
Closes gh-24486
4 years ago
Andy Wilkinson fb0f27ce2d Move EMFDependsOnPostProcessor into autoconfigure.orm.jpa
Closes gh-24452
4 years ago
Stephane Nicoll 69c6b6b04d Merge branch '2.4.x'
Closes gh-24511
4 years ago
Stephane Nicoll 251e8b2640 Update instruction to add the configuration processor with Maven
Closes gh-24498
4 years ago
Stephane Nicoll f9e44cd774 Merge branch '2.4.x'
Closes gh-24496
4 years ago
Stephane Nicoll 96510156ae Merge branch '2.3.x' into 2.4.x
Closes gh-24495
4 years ago
Stephane Nicoll 26e7e61919 Merge branch '2.2.x' into 2.3.x
Closes gh-24494
4 years ago
Stephane Nicoll 60f526add0 Remove links to Jetty API and documentation
This commit removes links to Jetty API and documentation as those links
are breaking every time the Jetty team releases a new version

See https://github.com/eclipse/jetty.project/issues/4546

Closes gh-24493
4 years ago
Stephane Nicoll 08b692581a Prepare 2.4.x branch 4 years ago
izeye 0eae6b4f72 Polish
See gh-24418
4 years ago
Phillip Webb b48f4028a3 Merge branch '2.3.x' 4 years ago
Phillip Webb 30717b6ae3 Merge branch '2.2.x' into 2.3.x 4 years ago
Phillip Webb 4f95486822 Polish note about Maven/Gradle restarts
See gh-24271
4 years ago
Phillip Webb b9e87a4ab2 Merge branch '2.3.x'
Closes gh-24410
4 years ago
Phillip Webb 445c6b8aa6 Merge branch '2.2.x' into 2.3.x
Closes gh-24409
4 years ago
Phillip Webb 10d3121e27 Polish "Triggering a restart" formatting
See gh-24271
4 years ago
Billy T. Hernandez 0503079dc5 Document devtools restart with Maven/Gradle
Update the documentation to help avoid confusion for people who aren't
using an IDE.

See gh-24271
4 years ago
Phillip Webb 3618bddf51 Merge branch '2.3.x'
Closes gh-24408
4 years ago
Phillip Webb 06531b9b71 Merge branch '2.2.x' into 2.3.x
Closes gh-24407
4 years ago
Phillip Webb 89642f0ce8 Add link to appendix from error handling
Improve documentation by adding a link from the "Error Handling" section
to the appendix.

Closes gh-24265
4 years ago
Phillip Webb cd5ff6e4af Merge branch '2.3.x'
Closes gh-24404
4 years ago
Phillip Webb 11f285bde5 Merge branch '2.2.x' into 2.3.x
Closes gh-24403
4 years ago
izeye 8c55803931 Polish
See gh-24306
4 years ago
Stephane Nicoll 93d83342d2 Merge branch '2.3.x'
Closes gh-24401
4 years ago
Stephane Nicoll 06671aa50e Stop deferring JPA bootstrap mode by default
This commit changes the default value of bootstrap-mode to "default"
rather than "deferred" so that the JPA infrastructure starts in the
main thread rather than asynchronously.

Closes gh-24249
4 years ago
dreis2211 b9ec88a7a5 Fix Asciidoc build step
See gh-24326
4 years ago
Madhura Bhave d041c7d6b9 Document the granularity for property document imports
Closes gh-22987
4 years ago
Madhura Bhave 932fb65107 Correct external application properties load order
Fixes gh-24308
4 years ago
Stephane Nicoll f3afd8a0f4 Fix location of Spring LDAP and Spring Session properties
Closes gh-23558
4 years ago
Stephane Nicoll 7283ff04eb Merge branch '2.3.x'
Closes gh-24162
4 years ago
Sergey Kolesnikov b341b478a6 Rename "sla" to "slo" in reference documentation
See gh-24160
4 years ago
Andy Wilkinson 6df10842d2 Allow Devtools to be enabled irrespective of the launching ClassLoader
Closes gh-21424
4 years ago
Andy Wilkinson 368b40868f Merge branch '2.3.x'
Closes gh-24122
4 years ago
Andy Wilkinson 3e243de41b Merge branch '2.2.x' into 2.3.x
Closes gh-24121
4 years ago
dreis2211 033c78b945 Fix link to Flyway callback docs
See gh-24119
4 years ago
Brian Clozel f0a6128db3 Add spring.web.resources.cache.use-last-modified
Prior to this commit, packaging a Spring Boot application as a container
image with Cloud Native Buildpacks could result in unwanted browser
caching behavior, with "Last-Modified" HTTP response headers pointing to
dates in the far past.

This is due to CNB resetting the last-modified date metadata for static
files (for build reproducibility and container layer caching) and Spring
static resource handling relying on that information when serving static
resources.

This commit introduces a new configuration property
`spring.web.resources.cache.use-last-modified` that can be used to
disable this behavior in Spring if the application is meant to run as a
container image built by CNB.

The default value for this property remains `true` since this remains
the default value in Spring Framework and using that information in
other deployment models is a perfectly valid use case.

Fixes gh-24099
4 years ago
Andy Wilkinson 6a2332d477 Merge branch '2.3.x'
Closes gh-24062
4 years ago
Andy Wilkinson 44d0ce5ff1 Merge branch '2.2.x' into 2.3.x
Closes gh-24060
4 years ago
Andy Wilkinson 9c5d1646bd Show how to configure a case-sensitive physical naming strategy
Closes gh-24045
4 years ago
Andy Wilkinson bb5faeaabe Correct cross-reference in reference documentation
See gh-24033
4 years ago
Andy Wilkinson 21eb46739c Merge branch '2.3.x'
Closes gh-24033
4 years ago
Andy Wilkinson 84cee76700 Merge branch '2.2.x' into 2.3.x
Closes gh-24032
4 years ago
Andy Wilkinson d5980be623 Clarify documentation for relaxed binding of environment variables
Closes gh-22974
4 years ago
Andy Wilkinson a1af99640e Merge branch '2.3.x'
Closes gh-24026
4 years ago
Andy Wilkinson 28f7bc37a5 Merge branch '2.2.x' into 2.3.x
Closes gh-24025
4 years ago
Andy Wilkinson c289ba0c2c Recommend disabling context root redirects with proxied Tomcat
Closes gh-22908
4 years ago
Andy Wilkinson 2814f91fbf Merge branch '2.3.x'
Closes gh-24022
4 years ago
Andy Wilkinson 7c209478b6 Merge branch '2.2.x' into 2.3.x
Closes gh-24021
4 years ago
Pascal Schumacher 5472fcf433 Fix typo in Spring Session documentation
See gh-24020
4 years ago
Andy Wilkinson 6cb5a98036 Merge branch '2.3.x'
Closes gh-24019
4 years ago
Andy Wilkinson b2a058b6fe Merge branch '2.2.x' into 2.3.x
Closes gh-24018
4 years ago
Andy Wilkinson 2f280b01e1 Improve Spring Session back-off documentation
Closes gh-23151
4 years ago
Andy Wilkinson 73c444262b Merge branch '2.3.x'
Closes gh-24015
4 years ago
Andy Wilkinson f9ff39a7a6 Merge branch '2.2.x' into 2.3.x
Closes gh-24014
4 years ago
Andy Wilkinson 35bff55097 Ensure that Quartz can be auto-configured with a Quartz-specific TM
Previously, Quartz could be configured with a specific DataSource
using `@QuartzDataSource` but it was not possible to configure a
Quartz-specific transaction manager. This could result in the
different DataSources being used by Quartz itself and Quart'z
DataSourceTransactionManager.

This commit introduces a new qualifier, `@QuartzTransactionManager`,
that can be used to avoid the above-described problem. Any
`@QuartzTransactionManager`-annotated bean will be used by the
Quartz auto-configure configuration instead of the application's main
`TransactionManager`. If no such qualified bean is present, the
application's main TransactionManager, if any, will be used as before.

Fixes gh-20184
4 years ago
Andy Wilkinson c76b246463 Merge branch '2.3.x'
Closes gh-24005
4 years ago
Andy Wilkinson b846143c37 Merge branch '2.2.x' into 2.3.x
Closes gh-24004
4 years ago
Andy Wilkinson d32d65b02c Add tip about providing as much typo info as possible in @Bean methods
Closes gh-22925
4 years ago
izeye 9c35cd41ad Polish
See gh-23986
4 years ago
Andy Wilkinson c22e655848 Move spring.resources.* properties to spring.web.resources.*
Closes gh-23917
4 years ago
Andy Wilkinson 2db8e7eebe Polish "Add liquibase driver class name property"
See gh-23958
4 years ago
Stephane Nicoll 93e36a97ab Remove version elements from Maven plugin documentation
This commit removes `<version>` from the Maven Plugin documentation
where it makes sense so that versions aren't hardcoded unnecessarily.

Rather, a plugin or dependency management should be in place so those
are not needed.

Closes gh-23909
4 years ago
Phillip Webb cf673cee55 Use stricter document properties separator logic
Update `OriginTrackedPropertiesLoader` with stricter logic around the
document separator. If the preceding or following lines are comments
then the separator will be ignored.

Closes gh-22963
4 years ago
Phillip Webb a0862f9146 Support wildcard configtree imports
Update `ConfigTreeConfigDataResource` so that a wildcard suffix can
be used to import multiple folders. The pattern logic from
`StandardConfigDataLocationResolver` has been extracted into a new
`LocationResourceLoader` class so that it can be reused.

Closes gh-22958
4 years ago
Andy Wilkinson 689d0c8307 Remove skipping of spring-boot-* projects from DevTools restart triggers
Closes gh-23158
4 years ago
Stephane Nicoll 9ab3abb728 Add support for SAML2 relying party registration's decryption credentials
Closes gh-23705
4 years ago
Andy Wilkinson 10f887a5ad Introduce management base-path property for servlet and reactive actuator
Previously, the base path of a servlet-based management server could be
configured using management.server.servlet.context-path but there was no
equivalent property for WebFlux.

This commit introduces a new property, management.server.base-path,
that can be used with both servlet and reactive management servers. The
existing servlet-specific property has been deprecated in favour of the
new general property. When using the servlet stack, if both the general
property and the servlet-specific property are set, the new general
property takes precedence. When using the reactive stack, only the new
general property is considered.

Closes gh-22906
4 years ago
Stephane Nicoll e0f123e676 Do not use servlet session timeout for reactive web applications
This commit fixes the auto-configuration of Spring Session to use
"server.servlet.session.timeout" as a fallback for Servlet-based web
applications only.

Closes gh-23752
4 years ago
Phillip Webb 062bd90d87 Add properties for logging charsets
Add `logging.charset.console` and `logging.charset.file` properties
that can be used to configure charsets for Logback/Log4J2.

Closes gh-23827
4 years ago
Brian Clozel fa220ace4d Fix missing broken link in reference docs
See gh-23126
4 years ago
Brian Clozel 5fceb9d5b7 Change favicon StaticResourceLocation
Prior to this commit, the `StaticResourceLocation` for favicons would
point to `"/**/favicon.ico"`. This location does not reflect the current
web development landscape, since the png format and size variants are
not supported here. Also, the `"**"` pattern can be costly at runtime
and is deprecated by the new path pattern support in Spring Framework
(see gh-22833).

This commit changes the default locations to `"/favicon.*","/*/icon-*"`,
supporting common use cases such as `"/favicon.ico"`, `"/favicon.png"`
and `"/icons/icon-48x48.png"`.

Closes gh-23126
4 years ago
Pushkaraj S e60f26f8cc Polish HTTP/2 Cleartext documentation
See gh-23816
Closes gh-23820
4 years ago
Phillip Webb 1725594a0e Rationalize Logback logging properties
Deprecate and provide alternatives for logging properties that are
specific to Logback.

The following Spring Boot properties have been changed:

  * logging.pattern.rolling-file-name ->
    logging.logback.rollingpolicy.file-name-pattern

  * logging.file.clean-history-on-start ->
    logging.logback.rollingpolicy.clean-history-on-start

  * logging.file.max-size ->
    logging.logback.rollingpolicy.max-file-size

  * logging.file.total-size-cap ->
    logging.logback.rollingpolicy.total-size-cap

  * logging.file.max-history ->
    logging.logback.rollingpolicy.max-history

As have the system environment properties that they map to:

  * ROLLING_FILE_NAME_PATTERN ->
    LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN

  * LOG_FILE_CLEAN_HISTORY_ON_START ->
    LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START

  * LOG_FILE_MAX_SIZE ->
    LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE

  * LOG_FILE_TOTAL_SIZE_CAP ->
    LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP

  * LOG_FILE_MAX_HISTORY ->
    LOGBACK_ROLLINGPOLICY_MAX_HISTORY

This commit also cleans up and simplifies `DefaultLogbackConfiguration`.

Closes gh-23609
4 years ago
Brian Clozel 9c54a5369d Merge branch '2.3.x'
Closes gh-23816
4 years ago
Brian Clozel b37eecc015 Merge branch '2.2.x' into 2.3.x
Closes gh-23812
4 years ago
Brian Clozel 9478cd2dfb Document how to configure h2c protocol
Prior to this commit, the how-to documentation would say that Spring
Boot does not support the h2c protocol. While it's not supported
out-of-the-box with a configuration property, this protocol can still be
configured using server customizers.

This commit documents, with code snippets, the server customizers one
should use to configure the h2c protocol in an application - for each
supported server.

Closes gh-21997
4 years ago
Stephane Nicoll 52f2c27779 Merge branch '2.3.x'
Closes gh-23765
4 years ago
Stephane Nicoll 4371a3c080 Merge branch '2.2.x' into 2.3.x
Closes gh-23764
4 years ago
Stephane Nicoll 4f4cc8b182 Polish contribution
See gh-23755
4 years ago
cdalexndr 2f2b1b9656 Note that using LiveReload requires Devtools restart to be enabled
See gh-23755
4 years ago
Stephane Nicoll dd74810c80 Revert "Fix detection logic for embedded databases"
This reverts commit c4a5a34702.

See gh-23721
4 years ago
dreis2211 47bac6a90d Fix links to Spring Framework documentation
See gh-23737
4 years ago
Asha Somayajula c4a5a34702 Fix detection logic for embedded databases
Closes gh-23721
4 years ago
Andy Wilkinson f0b0a073c3 Remove unwanted titles from config blocks
Closes gh-23722
4 years ago
Stephane Nicoll c0b267feb4 Polish "Fix detection logic for embedded databases"
See gh-23693
4 years ago
Phillip Webb 1cf9fc107e Improve ConfigData processing code
Refactor `ConfigData` processing code to make it less awkward to
follow.

Prior to this commit the `ConfigDataLocationResolver` would take a
String location and return a `ConfigDataLocation` instance. This was
a little confusing since sometimes we would refer to `location` as the
String value, and sometimes it would be the typed instance. We also
had nowhere sensible to put the `optional:` prefix logic and we needed
to pass a `boolean` parameter to a number of methods. The recently
introduced `Orgin` support also didn't have a good home.

To solve this, `ConfigDataLocation` has been renamed to
`ConfigDataResource`. This frees up `ConfigDataLocation` to be used
as a richer `location` type that holds the String value, the `Orgin`
and provides a home for the `optional:` logic.

This commit also cleans up a few other areas of the code, including
renaming `ResourceConfigData...` to `StandardConfigData...`. It also
introduces a new exception hierarchy for `ConfigDataNotFoundExceptions`.

Closes gh-23711
4 years ago