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
254
+
==== Connecting to Elasticsearch Using REST clients
255
255
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 from the `org.elasticsearch.client:elasticsearch-rest-client` module and the high-level client from the `org.elasticsearch.client:elasticsearch-high-level-client` module.
256
256
Additionally, Spring Boot provides support for a reactive client, based on Spring Framework's `WebClient`, from the `org.springframework.data:spring-data-elasticsearch` module.
257
257
By default, the clients will target `http://localhost:9200`.
@@ -268,7 +268,7 @@ You can use `spring.elasticsearch.*` properties to further tune how the clients
===== Connecting to Elasticsearch using ReactiveElasticsearchClient
296
+
===== Connecting to Elasticsearch Using ReactiveElasticsearchClient
297
297
{spring-data-elasticsearch}[Spring Data Elasticsearch] ships `ReactiveElasticsearchClient` for querying Elasticsearch instances in a reactive fashion.
298
298
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:
103
103
104
104
. From the classpath
@@ -471,7 +471,7 @@ See the _<<howto#howto.properties-and-configuration.short-command-line-arguments
471
471
472
472
473
473
[[features.external-config.files.multi-document]]
474
-
==== Working with Multi-Document Files
474
+
==== Working With Multi-Document Files
475
475
Spring Boot allows you to split a single physical file into multiple logical documents which are each added independently.
476
476
Documents are processed in order, from top to bottom.
477
477
Later documents can override the properties defined in earlier ones.
@@ -564,7 +564,7 @@ If you need a secure way to store credentials and passwords, the https://cloud.s
564
564
565
565
566
566
[[features.external-config.yaml]]
567
-
=== Working with YAML
567
+
=== Working With YAML
568
568
https://yaml.org[YAML] is a superset of JSON and, as such, is a convenient format for specifying hierarchical configuration data.
569
569
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.
570
570
@@ -677,7 +677,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.
752
752
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.
753
753
@@ -779,7 +779,7 @@ If you still want to inject other beans using the constructor, the configuration
0 commit comments