Skip to content

Commit 0f88f74

Browse files
krygerDave Syer
authored andcommitted
Minor fixes in the docs
1 parent 41cdb7b commit 0f88f74

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ within a JUnit test.
149149
=== Using the CommandLineRunner
150150
If you want access to the raw command line arguments, or you need to run some specific code
151151
once the `SpringApplication` has started you can implement the `CommandLineRunner`
152-
interface. The `run(String... args)` method will be called on all spring beans
152+
interface. The `run(String... args)` method will be called on all Spring beans
153153
implementing this interface.
154154

155155
[source,java,indent=0]
@@ -187,7 +187,7 @@ interface if they wish to return a specific exit code when the application ends.
187187

188188
[[boot-features-external-config]]
189189
== Externalized Configuration
190-
Spring Boot likes you to externalize your configuration so you can work with the same
190+
Spring Boot allows you to externalize your configuration so you can work with the same
191191
application code in different environments. You can use properties files, YAML files,
192192
environment variables and command-line arguments to externalize configuration. Property
193193
values can be injected directly into your beans using the `@Value` annotation, accessed
@@ -227,14 +227,14 @@ To provide a concrete example, suppose you develop a `@Component` that uses a
227227

228228
You can bundle an `application.properties` inside your jar that provides a sensible
229229
default `name`. When running in production, an `application.properties` can be provided
230-
outside of your jar that overrides `name`; and for one off testing, you can launch with
230+
outside of your jar that overrides `name`; and for one-off testing, you can launch with
231231
a specific command line switch (e.g. `java -jar app.jar --name="Spring"`).
232232

233233

234234

235235
[[boot-features-external-config-command-line-args]]
236236
=== Accessing command line properties
237-
By default SpringApplication will convert any command line option arguments (starting
237+
By default `SpringApplication` will convert any command line option arguments (starting
238238
with ``--'', e.g. `--server.port=9000`) to a `property` and add it to the Spring
239239
`Environment`. As mentioned above, command line properties always take precedence over
240240
other property sources.
@@ -261,8 +261,8 @@ an alternative to '.properties'.
261261

262262
If you don't like `application.properties` as the configuration file name you can switch
263263
to another by specifying a `spring.config.name` environment property. You can also refer
264-
to an explicit location using the `spring.config.location` environment property (comma-
265-
separated list of directory locations, or file paths).
264+
to an explicit location using the `spring.config.location` environment property
265+
(comma-separated list of directory locations, or file paths).
266266

267267
[indent=0]
268268
----
@@ -506,7 +506,7 @@ property editors (via a `CustomEditorConfigurer` bean).
506506
[[boot-features-external-config-validation]]
507507
==== @ConfigurationProperties Validation
508508
Spring Boot will attempt to validate external configuration, by default using JSR-303
509-
(if it is on the classpath). You can simply add JSR-303 `javax.valididation` constraint
509+
(if it is on the classpath). You can simply add JSR-303 `javax.validation` constraint
510510
annotations to your `@ConfigurationProperties` class:
511511

512512
[source,java,indent=0]

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
This section goes into more detail about how you should use Spring Boot. It covers topics
77
such as build systems, auto-configuration and run/deployment options. We also cover some
88
Spring Boot best practices. Although there is nothing particularly special about
9-
Spring Boot (it is just another library that you can consume). There are a few
9+
Spring Boot (it is just another library that you can consume), there are a few
1010
recommendations that, when followed, will make your development process just a
1111
little easier.
1212

@@ -63,7 +63,7 @@ the `parent`:
6363
----
6464

6565
NOTE: You should only need to specify the Spring Boot version number on this dependency.
66-
if you import additional starters, you can safely omit the version number.
66+
If you import additional starters, you can safely omit the version number.
6767

6868

6969

@@ -571,7 +571,7 @@ the `spring-boot-plugin`
571571

572572
[[using-boot-hot-swapping]]
573573
=== Hot swapping
574-
Since Spring Boot applications are just plain Java application, JVM hot-swapping should
574+
Since Spring Boot applications are just plain Java applications, JVM hot-swapping should
575575
work out of the box. JVM hot swapping is somewhat limited with the bytecode that it can
576576
replace, for a more complete solution the
577577
https://github.com/spring-projects/spring-loaded[Spring Loaded] project, or

0 commit comments

Comments
 (0)