You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/cli/groovy-beans-dsl.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
[[cli.groovy-beans-dsl]]
2
-
== Developing Applications with the Groovy Beans DSL
2
+
== Developing Applications With the Groovy Beans DSL
3
3
Spring Framework 4.0 has native support for a `beans{}` "`DSL`" (borrowed from https://grails.org/[Grails]), and you can embed bean definitions in your Groovy application scripts by using the same format.
4
4
This is sometimes a good way to include external features like middleware declarations, as shown in the following example:
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/container-images/efficient-images.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
[[container-images.efficient-images]]
2
-
== Efficient container images
2
+
== Efficient Container Images
3
3
It is easily possible to package a Spring Boot fat jar as a docker image.
4
4
However, there are various downsides to copying and running the fat jar as is in the docker image.
5
5
There’s always a certain amount of overhead when running a fat jar without unpacking it, and in a containerized environment this can be noticeable.
@@ -9,7 +9,7 @@ If you put jar files in the layer before your application classes, Docker often
9
9
10
10
11
11
[[container-images.efficient-images.unpacking]]
12
-
=== Unpacking the fat jar
12
+
=== Unpacking the Executable JAR
13
13
If you are running your application from a container, you can use an executable jar, but it is also often an advantage to explode it and run it in a different way.
14
14
Certain PaaS implementations may also choose to unpack archives before they run.
==== Connecting to Elasticsearch using REST clients
278
+
==== Connecting to Elasticsearch Using REST clients
279
279
Elasticsearch ships https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html[two different REST clients] that you can use to query a cluster: the "Low Level" client and the "High Level" client.
280
280
Spring Boot provides support for the "High Level" client, which ships with `org.elasticsearch.client:elasticsearch-rest-high-level-client`.
281
281
Additionally, Spring Boot provides support for a reactive client, based on Spring Framework's `WebClient`, that ships with `org.springframework.data:spring-data-elasticsearch`.
@@ -293,7 +293,7 @@ You can use `spring.elasticsearch.*` properties to further tune how the clients
===== Connecting to Elasticsearch using RestHighLevelClient
296
+
===== Connecting to Elasticsearch Using RestHighLevelClient
297
297
If you have `elasticsearch-rest-high-level-client` on the classpath, Spring Boot will auto-configure and register a `RestHighLevelClient` bean.
298
298
In addition to the properties described previously, to fine-tune the `RestHighLevelClient`, you can register an arbitrary number of beans that implement `RestClientBuilderCustomizer` for more advanced customizations.
299
299
To take full control over its registration, define a `RestClientBuilder` bean.
@@ -316,7 +316,7 @@ You can further tune how `Sniffer` is configured, as shown in the following exam
===== Connecting to Elasticsearch using ReactiveElasticsearchClient
319
+
===== Connecting to Elasticsearch Using ReactiveElasticsearchClient
320
320
{spring-data-elasticsearch}[Spring Data Elasticsearch] ships `ReactiveElasticsearchClient` for querying Elasticsearch instances in a reactive fashion.
321
321
It is built on top of WebFlux's `WebClient`, so both `spring-boot-starter-elasticsearch` and `spring-boot-starter-webflux` dependencies are useful to enable this support.
=== Compatibility with the Standard Java "`JarFile`"
29
+
=== Compatibility With the Standard Java "`JarFile`"
30
30
Spring Boot Loader strives to remain compatible with existing code and libraries.
31
31
`org.springframework.boot.loader.jar.JarFile` extends from `java.util.jar.JarFile` and should work as a drop-in replacement.
32
32
The `getURL()` method returns a `URL` that opens a connection compatible with `java.net.JarURLConnection` and can be used with Java's `URLClassLoader`.
Spring Boot will automatically find and load `application.properties` and `application.yaml` files from the following locations when your application starts:
106
106
107
107
. From the classpath
@@ -474,7 +474,7 @@ See the _<<howto#howto.properties-and-configuration.short-command-line-arguments
474
474
475
475
476
476
[[features.external-config.files.multi-document]]
477
-
==== Working with Multi-Document Files
477
+
==== Working With Multi-Document Files
478
478
Spring Boot allows you to split a single physical file into multiple logical documents which are each added independently.
479
479
Documents are processed in order, from top to bottom.
480
480
Later documents can override the properties defined in earlier ones.
@@ -567,7 +567,7 @@ If you need a secure way to store credentials and passwords, the https://cloud.s
567
567
568
568
569
569
[[features.external-config.yaml]]
570
-
=== Working with YAML
570
+
=== Working With YAML
571
571
https://yaml.org[YAML] is a superset of JSON and, as such, is a convenient format for specifying hierarchical configuration data.
572
572
The `SpringApplication` class automatically supports YAML as an alternative to properties whenever you have the https://github.com/snakeyaml/snakeyaml[SnakeYAML] library on your classpath.
573
573
@@ -680,7 +680,7 @@ TIP: See also the <<features#features.external-config.typesafe-configuration-pro
Spring Boot provides infrastructure to bind `@ConfigurationProperties` types and register them as beans.
765
765
You can either enable configuration properties on a class-by-class basis or enable configuration property scanning that works in a similar manner to component scanning.
766
766
@@ -798,7 +798,7 @@ If you still want to inject other beans using the constructor, the configuration
0 commit comments