Phillip Webb
41e0bbf4bb
Add SpringBootTest.useMainMethod support
...
Add a new `useMainMethod` attribute to `SpringBootTest` which can be
used to determine how the test should run. The three available options
are:
- `ALWAYS`
- `NEVER`
- `WHEN_AVAILABLE`
The default is `WHEN_AVAILABLE` which will attempt to launch the test
using the `main` method if there is one.
The `SpringBootContextLoader` has been updated to use the new
`SpringApplicationHook` interface when the main method is being used.
Closes gh-22405
2022-09-14 22:37:37 -07:00
Stephane Nicoll
ebef52b207
Merge branch '2.7.x'
...
Closes gh-32292
2022-09-10 09:13:53 +02:00
Stephane Nicoll
04a668fd07
Merge branch '2.6.x' into 2.7.x
...
Closes gh-32291
2022-09-10 09:13:40 +02:00
Oliver B. Fischer
6e4e76597a
Make the path of the config directory better understandable
...
Currently, the documentation relates to the subdirectory for external
configurations as `/config`. Read as UNIX path, the leading slash
could be read as reference to the root directory `/`.
This commit updates the documentation to use 'config/' instead.
See gh-32224
2022-09-10 09:09:43 +02:00
Scott Frederick
da4de7d67d
Generate the AutoConfiguration.imports file from annotations
...
This commit adds the `AutoConfigurationImportsAnnotationProcessor` to
the `spring-boot-autoconfigure-processor` annotation processor
module. When added to a project build, the annotation processor will
generate the
`org.springframework.boot.autoconfigure.AutoConfiguration.imports`
file automatically from `@AutoConfiguration`-annotated classes. It
also applies the annotation processor to the Spring Boot build.
Closes gh-31228
2022-09-02 15:10:22 -05:00
Scott Frederick
01c68a3dc8
Merge branch '2.7.x'
...
Closes gh-32217
2022-09-01 15:36:12 -05:00
Scott Frederick
7763a5df7d
Polish auto-configuration documentation
...
Remove references to outdated information, emphasize use of the
`@AutoConfiguration` annotation and attributes, and edit for clarity.
Closes gh-32174
2022-09-01 15:35:59 -05:00
Andy Wilkinson
4c01810ca2
Merge branch '2.7.x'
...
Closes gh-32197
2022-08-31 11:37:20 +01:00
Andy Wilkinson
13edfba1f5
Fix Kotlin example for empty @DefaultValue constructor binding
...
Closes gh-32177
2022-08-31 11:35:58 +01:00
Andy Wilkinson
05877dc927
Merge branch '2.7.x'
...
Closes gh-31988
2022-08-04 14:17:39 +01:00
Andy Wilkinson
a69cf002f0
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31987
2022-08-04 14:16:16 +01:00
Andy Wilkinson
6efa77f3f5
Generate console output examples at build time
...
Closes gh-28208
2022-08-04 14:15:25 +01:00
Andy Wilkinson
0857cae943
Merge branch '2.7.x'
...
Closes gh-31952
2022-08-01 21:10:36 +01:00
Andy Wilkinson
0dde4278db
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31951
2022-08-01 21:09:37 +01:00
Marc Wrobel
3e0665e791
Fix links in documentations
...
- Fix broken links
- Use HTTPS where possible,
- Remove spring-security-oauth2-docs as it is no longer used
- Remove https://github.com/ThierrySquirrel/rocketmq-spring-boot-starter .
This starter is 404 and https://github.com/rocketmq/rocketmq-spring-boot-starter
hasn't been updated for 4 years.
- Clean up nohttp allowlist.lines.
See gh-31887
2022-08-01 21:07:36 +01:00
Brian Clozel
38f1bc9793
Reinstate Spring for GraphQL auto-configuration
...
This commit adds the Spring for GraphQL auto-configuration back
into Spring Boot 3.0, now that a 1.1.0 release is scheduled with the
required baseline. This release also needs GraphQL Java 19.0 as a
baseline.
Closes gh-31809
2022-08-01 14:33:25 +02:00
Phillip Webb
ab469e8b6a
Merge branch '2.7.x'
...
Closes gh-31944
2022-08-01 12:35:42 +01:00
Phillip Webb
06b537e2a0
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31943
2022-08-01 12:35:23 +01:00
vilmos
00be9e4e94
Fix property placeholder references in @Value example
...
See gh-31941
2022-08-01 12:34:00 +01:00
Andy Wilkinson
fabe0637cd
Raise the minimum supported version of Kotlin to 1.7
...
Closes gh-31391
2022-06-15 10:53:26 +01:00
Phillip Webb
6dea2f0e8d
Merge branch '2.7.x'
...
Closes gh-31370
2022-06-13 18:20:32 -07:00
Phillip Webb
0be5078a73
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31369
2022-06-13 18:20:07 -07:00
Phillip Webb
b3a46fc50e
Document that placeholders should us the canonical property name form
...
Closes gh-31309
2022-06-13 18:19:47 -07:00
Stephane Nicoll
59f6661166
Merge branch '2.7.x'
...
Closes gh-31361
2022-06-13 14:54:09 +02:00
Stephane Nicoll
56913a08b8
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31360
2022-06-13 14:54:00 +02:00
Anthony Vanelverdinghe
b1ccb600f3
Remove reference to outdated location
...
See gh-31276
2022-06-13 14:52:38 +02:00
Moritz Halbritter
486b3073ce
Add tracing in integration tests paragraph to the documentation
...
See gh-31308
2022-06-10 14:25:12 +02:00
Moritz Halbritter
b250d8a1e4
Add @AutoConfigureObservability annotation
...
This annotation is read by ObservabilityContextCustomizerFactory, which
then sets test properties depending on the annotation attributes.
@AutoConfigureMetrics is deprecated, to support backwards compatability
it's now meta-annotated with @AutoConfigureObservability
See gh-31308
2022-06-10 14:25:12 +02:00
Andy Wilkinson
2744649892
Update started log message as app may not be running on a JVM
...
Closes gh-30974
2022-05-11 11:08:25 +01:00
Andy Wilkinson
0fbfb8ef09
Remove remnants of support for Embedded Mongo
...
See gh-30863 and 7e089a6b
2022-05-09 09:55:42 +01:00
Scott Frederick
7e089a6b81
Remove support for embedded MongoDB
...
This commit removes auto-configuration and dependency management
for Flapdoodle embedded MongoDB in favor of the Spring Boot support
provided by Flapdoodle.
Closes gh-30863
2022-05-06 17:05:36 -05:00
Scott Frederick
7f395941c7
Add timezone offset to default logging date format patterns
...
Closes gh-28654
2022-05-03 17:09:27 -05:00
Andy Wilkinson
e6b485b317
Merge branch '2.7.x'
2022-04-07 16:31:58 +01:00
Andy Wilkinson
8727361221
Polish "Order ExitCodeGenerators and return first non-zero exit code"
...
See gh-30457
2022-04-07 16:31:19 +01:00
dugenkui
6718b10fa9
Order ExitCodeGenerators and return first non-zero exit code
...
See gh-30457
2022-04-07 16:30:09 +01:00
Moritz Halbritter
5b05fd9fb2
Merge branch '2.7.x'
2022-04-04 14:27:24 +02:00
Moritz Halbritter
eedb8573b7
Polish documentation
2022-04-04 14:27:18 +02:00
Moritz Halbritter
6fa696f13d
Merge branch '2.7.x'
2022-04-04 14:23:24 +02:00
Moritz Halbritter
bd1424b004
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30528
2022-04-04 14:22:49 +02:00
Moritz Halbritter
bf3c2d713d
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30526
2022-04-04 14:18:45 +02:00
izeye
09d6215b65
Polish documentation
...
See gh-30498
2022-04-04 14:09:28 +02:00
Andy Wilkinson
24e6417ddc
Adapt to latest changes in Spring for GraphQL snapshots
...
See gh-30463
2022-03-29 16:50:12 +01:00
Andy Wilkinson
5d8c1d9bd7
Merge branch '2.7.x'
2022-03-29 14:30:42 +01:00
Andy Wilkinson
2f3ae02385
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30466
2022-03-29 14:24:42 +01:00
Andy Wilkinson
8f985474a6
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30465
2022-03-29 14:24:25 +01:00
Andy Wilkinson
d574563616
Document @ConstructorBinding and @DefaultValue with records
...
Closes gh-30460
2022-03-29 14:14:28 +01:00
Andy Wilkinson
eabf6cd1d8
Merge branch '2.7.x'
2022-03-25 15:15:26 +00:00
Andy Wilkinson
685d2d4391
Polish
...
See gh-30152
2022-03-25 15:15:02 +00:00
Andy Wilkinson
2e32f800e1
Merge branch '2.7.x'
2022-03-25 13:34:37 +00:00
Andy Wilkinson
8646ac4215
Move JsonComponent docs to general Jackson section
...
Closes gh-30405
2022-03-25 13:30:06 +00:00
Andy Wilkinson
5d09260870
Reinstate support for REST Assured
...
Closes gh-29543
Closes gh-30426
2022-03-25 10:12:42 +00:00
Stephane Nicoll
8824a09572
Polish "Document WebSecurityCustomizer for H2 Console"
...
See gh-29932
2022-03-21 13:55:46 +01:00
Henning Poettker
9d46a18406
Document WebSecurityCustomizer for H2 Console
...
See gh-29932
2022-03-21 13:38:42 +01:00
Andy Wilkinson
a1e972ebaa
Update Spock for Groovy 4.0 compatibility
...
Closes gh-30318
2022-03-18 12:38:41 +00:00
Andy Wilkinson
568cd687af
Remove support for REST Assured until it supports Groovy 4.0
...
REST Assured does not work with Groovy 4.0 so support is being
temporarily removed again.
See gh-29543
2022-03-18 12:35:19 +00:00
Andy Wilkinson
1dadc77346
Document that the minimum supported version of Kotlin is now 1.6
...
Closes gh-30197
2022-03-15 18:04:36 +00:00
Stephane Nicoll
e5cdcdadd5
Merge branch '2.7.x'
2022-03-09 08:29:23 +01:00
Stephane Nicoll
a71d9f5088
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30121
2022-03-09 08:29:16 +01:00
Stephane Nicoll
069c328075
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30120
2022-03-09 08:29:07 +01:00
fml2
80b90ed386
Fix typo
...
See gh-30118
2022-03-09 08:28:44 +01:00
Madhura Bhave
5368ed98ef
Merge branch '2.7.x' into main
2022-03-08 22:03:08 -08:00
Madhura Bhave
06496d85cd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30115
Closes gh-30116
2022-03-08 22:02:27 -08:00
Madhura Bhave
09dc4e5ce3
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30113
Closes gh-30114
2022-03-08 22:01:26 -08:00
Madhura Bhave
ef7d7487fa
Document when config data properties are invalid
...
This commit also reinstates documentation for
`spring.profiles.include`
Closes gh-25849
Closes gh-28451
2022-03-08 21:58:43 -08:00
Madhura Bhave
7846fb09be
Merge branch '2.7.x' into main
2022-03-08 18:13:30 -08:00
Madhura Bhave
ee291dc36f
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30112
2022-03-08 18:13:14 -08:00
Madhura Bhave
b86ad89523
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30111
2022-03-08 18:13:01 -08:00
Madhura Bhave
7d63faac7c
Document the scalar types supported by MapBinder
...
Closes gh-27581
2022-03-08 18:12:21 -08:00
Madhura Bhave
d240e293db
Document how to obtain ServletContext with an embedded container setup
...
Closes gh-24561
2022-03-08 17:34:35 -08:00
Gautham Mohan
4388910435
Consider DataFetcherExceptionResolver in GraphQTest
...
Prior to this commit, `@GraphQlTest` slice tests would only consider
JsonComponent, RuntimeWiringConfigurer, Converter and
GenericConverter beans. But DataFetcherExceptionResolver,
Instrumentation and GraphQlSourceBuilderCustomizer are used in
setting up the GraphQL source.
This commit ensures that the `GraphQlTypeExcludeFilter` considers
those bean types.
Closes gh-30078
2022-03-08 17:54:55 +01:00
Brian Clozel
81754c8bc4
Upgrade to Spring GraphQL 1.0.0-SNAPSHOT
...
This commit switches to 1.0.0-SNAPSHOT for Spring GraphQL, before its
upcoming 1.0.0-M6 version.
This commit adapts to the changes introduced in
spring-projects/spring-graphql#317 : now that `GraphQlClient` has been
introduced, `GraphQlTester` has been aligned with the new
infrastructure. The `@GraphQlTest` and `@SpringBootTest` testing support
is now using different variants for each.
All samples have been updated to use the proper GraphQL terminology, see
and spring-projects/spring-graphql#310 .
See gh-29637
2022-03-08 17:54:54 +01:00
Madhura Bhave
524c0e1474
Merge branch '2.7.x' into main
2022-03-07 18:23:50 -08:00
Madhura Bhave
b80047c451
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30092
2022-03-07 18:23:36 -08:00
Madhura Bhave
ac04be75f8
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30091
2022-03-07 18:23:19 -08:00
Madhura Bhave
ed8f8d59ef
Document how to structure configurations for efficient slice tests
...
Closes gh-16088
2022-03-07 18:21:12 -08:00
Andy Wilkinson
1872af056e
Make it clearer that the generated password is not for production use
...
Closes gh-30061
2022-03-04 17:55:54 +00:00
Andy Wilkinson
5ee3fdab77
Polish "Allow @DefaultValue to be used on record components"
...
See gh-29010
2022-03-04 14:52:20 +00:00
Andy Wilkinson
a8a70ecc06
Merge branch '2.7.x'
2022-03-03 12:08:38 +00:00
Andy Wilkinson
f4e2d7669b
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30051
2022-03-03 12:08:26 +00:00
Andy Wilkinson
d63e609fda
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30050
2022-03-03 12:08:11 +00:00
Andy Wilkinson
7dce772d67
Polish "Update placeholder docs to mention env vars and default values"
...
See gh-30012
2022-03-03 12:07:38 +00:00
Kirill Marchuk
2644a2b897
Update placeholder docs to mention env vars and default values
...
See gh-30012
2022-03-03 11:48:50 +00:00
Andy Wilkinson
355f80ab98
Add links to Spring Boot for Apache Geode and its documentation
...
Closes gh-29697
2022-03-01 12:13:58 +00:00
Andy Wilkinson
7dc40e95d2
Merge branch '2.7.x'
2022-02-24 12:06:21 +00:00
Andy Wilkinson
664ecbdcc1
Polish "Add DataCouchbaseTest annotation"
...
See gh-29912
2022-02-24 12:05:36 +00:00
Eddú Meléndez
36e52758a7
Add DataCouchbaseTest annotation
...
See gh-29912
2022-02-24 11:45:09 +00:00
Andy Wilkinson
4093fff225
Merge branch '2.7.x'
2022-02-24 11:24:23 +00:00
Eddú Meléndez
e22f78bc6a
Add DataElasticsearchTest annotation
...
See gh-29911
2022-02-24 10:27:20 +00:00
Phillip Webb
5454e2e26a
Merge branch '2.7.x'
2022-02-23 23:02:59 -08:00
Phillip Webb
9f00c3acf5
Polish
2022-02-23 21:44:43 -08:00
Madhura Bhave
f9d33ec1e2
Merge branch '2.7.x' into main
2022-02-23 15:10:48 -08:00
Madhura Bhave
0ecf43dbe2
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29979
2022-02-23 15:10:30 -08:00
Madhura Bhave
894860c177
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29978
2022-02-23 15:10:12 -08:00
Madhura Bhave
cc95f734d7
Clarify relation of import path to resultant properties in configtree import data
...
Closes gh-29606
2022-02-23 15:09:42 -08:00
Stephane Nicoll
f85ad61753
Merge branch '2.7.x'
2022-02-22 08:30:57 +01:00
Stephane Nicoll
d4db26dcc1
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29935
2022-02-22 08:30:47 +01:00
Stephane Nicoll
db26aff792
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29934
2022-02-22 08:30:38 +01:00
UbaidurRehman1
7b48c51689
Clarify that any property of the environment can be used in a banner
...
See gh-29931
2022-02-22 08:30:07 +01:00
Moritz Halbritter
d42f675959
Merge branch '2.7.x'
2022-02-21 10:36:05 +01:00
Moritz Halbritter
d7b229d3c7
Rename AutoConfigurationLoader to ImportCandidates
...
Move the class to a more suitable package, and load the files from
META-INF/spring/<fqn>.imports
See gh-29872
2022-02-21 10:34:38 +01:00