Skip to content

Commit 7211571

Browse files
committed
Fix some grammar issues in docs
Closes spring-projectsgh-1695
2 parents 4308d11 + 1693774 commit 7211571

File tree

13 files changed

+46
-46
lines changed

13 files changed

+46
-46
lines changed

CONTRIBUTING.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ With the requisite eclipse plugins installed you can select
133133
need to import the root `spring-boot` pom and the `spring-boot-samples` pom separately.
134134

135135
=== Importing into eclipse without m2eclipse
136-
If you prefer not to use m2eclipse you can generate eclipse project meta-data using the
136+
If you prefer not to use m2eclipse you can generate eclipse project metadata using the
137137
following command:
138138

139139
[indent=0]

spring-boot-actuator/README.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ For Gradle, use the declaration:
4747
authentication events by default. This can be very useful for reporting, and also to
4848
implement a lock-out policy based on authentication failures.
4949
* **Process Monitoring** In Spring Boot Actuator you can find `ApplicationPidListener`
50-
which creates file containing application PID (by default in application directory and
51-
file name is `application.pid`).
50+
which creates a file containing the application PID (by default in the application
51+
directory with a file name of `application.pid`).

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ content into your application; rather pick only the properties that you need.
295295
spring.hornetq.embedded.serverId= # auto-generated id of the embedded server (integer)
296296
spring.hornetq.embedded.persistent=false # message persistence
297297
spring.hornetq.embedded.data-directory= # location of data content (when persistence is enabled)
298-
spring.hornetq.embedded.queues= # comma separate queues to create on startup
299-
spring.hornetq.embedded.topics= # comma separate topics to create on startup
298+
spring.hornetq.embedded.queues= # comma-separated queues to create on startup
299+
spring.hornetq.embedded.topics= # comma-separated topics to create on startup
300300
spring.hornetq.embedded.cluster-password= # customer password (randomly generated by default)
301301
302302
# JMS ({sc-spring-boot-autoconfigure}/jms/JmsProperties.{sc-ext}[JmsProperties])

spring-boot-docs/src/main/asciidoc/appendix-executable-jar-format.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ curious about the underlying technology, this section provides some background.
1515
=== Nested JARs
1616
Java does not provide any standard way to load nested jar files (i.e. jar files that
1717
are themselves contained within a jar). This can be problematic if you are looking
18-
to distribute a self contained application that you can just run from the command line
18+
to distribute a self-contained application that you can just run from the command line
1919
without unpacking.
2020

2121
To solve this problem, many developers use ``shaded'' jars. A shaded jar simply packages

spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ example:
237237
[[build-tool-plugins-gradle-custom-version-management]]
238238
==== Custom version management
239239
If is possible to customize the versions used by the `ResolutionStrategy` if you need
240-
to deviate from Spring Boot's ``blessed'' dependencies. Alternative version meta-data
240+
to deviate from Spring Boot's ``blessed'' dependencies. Alternative version metadata
241241
is consulted using the `versionManagement` configuration. For example:
242242

243243
[source,groovy,indent=0,subs="verbatim,attributes"]

spring-boot-docs/src/main/asciidoc/cloud-deployment.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _cloud's_ notion of a running process.
1212
Two popular cloud providers, Heroku and Cloud Foundry, employ a ``buildpack'' approach.
1313
The buildpack wraps your deployed code in whatever is needed to _start_ your
1414
application: it might be a JDK and a call to `java`, it might be an embedded webserver,
15-
or it might be a full fledged application server. A buildpack is pluggable, but ideally
15+
or it might be a full-fledged application server. A buildpack is pluggable, but ideally
1616
you should be able to get by with as few customizations to it as possible.
1717
This reduces the footprint of functionality that is not under your control. It minimizes
1818
divergence between deployment and production environments.
@@ -103,7 +103,7 @@ able to hit the application at the URI given, in this case
103103

104104
[[cloud-deployment-cloud-foundry-services]]
105105
=== Binding to services
106-
By default, meta-data about the running application as well as service connection
106+
By default, metadata about the running application as well as service connection
107107
information is exposed to the application as environment variables (for example:
108108
`$VCAP_SERVICES`). This architecture decision is due to Cloud Foundry's polyglot
109109
(any language and platform can be supported as a buildpack) nature; process-scoped

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

+16-16
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ that and be sure that it has initialized is to add a `@Bean` of type
365365
`ApplicationListener<EmbeddedServletContainerInitializedEvent>` and pull the container
366366
out of the event when it is published.
367367

368-
A really useful thing to do in is to use `@IntegrationTest` to set `server.port=0`
368+
A useful practice for use with `@IntegrationTest`s is to set `server.port=0`
369369
and then inject the actual ('`local`') port as a `@Value`. For example:
370370

371371
[source,java,indent=0,subs="verbatim,quotes,attributes"]
@@ -415,17 +415,17 @@ accessible on the filesystem, i.e. it cannot be read from within a jar file.
415415
Generally you can follow the advice from
416416
'<<howto-discover-build-in-options-for-external-properties>>' about
417417
`@ConfigurationProperties` (`ServerProperties` is the main one here), but also look at
418-
`EmbeddedServletContainerCustomizer` and various Tomcat specific `+*Customizers+` that you
418+
`EmbeddedServletContainerCustomizer` and various Tomcat-specific `+*Customizers+` that you
419419
can add in one of those. The Tomcat APIs are quite rich so once you have access to the
420420
`TomcatEmbeddedServletContainerFactory` you can modify it in a number of ways. Or the
421421
nuclear option is to add your own `TomcatEmbeddedServletContainerFactory`.
422422

423423

424424

425425
[[howto-enable-multiple-connectors-in-tomcat]]
426-
=== Enable Multiple Connectors Tomcat
426+
=== Enable Multiple Connectors with Tomcat
427427
Add a `org.apache.catalina.connector.Connector` to the
428-
`TomcatEmbeddedServletContainerFactory` which can allow multiple connectors eg a HTTP and
428+
`TomcatEmbeddedServletContainerFactory` which can allow multiple connectors, e.g. HTTP and
429429
HTTPS connector:
430430

431431
[source,java,indent=0,subs="verbatim,quotes,attributes"]
@@ -918,7 +918,7 @@ then you can do that in `application.properties` using the "logging.level" prefi
918918
You can also set the location of a file to log to (in addition to the console) using
919919
"logging.file".
920920

921-
To configure the more fine grained settings of a logging system you need to use the native
921+
To configure the more fine-grained settings of a logging system you need to use the native
922922
configuration format supported by the `LoggingSystem` in question. By default Spring Boot
923923
picks up the native configuration from its default location for the system (e.g.
924924
`classpath:logback.xml` for Logback), but you can set the location of the config file
@@ -981,10 +981,10 @@ jiggling with excludes, .e.g. in Maven:
981981
<groupId>org.springframework.boot</groupId>
982982
<artifactId>spring-boot-starter</artifactId>
983983
<exclusions>
984-
<exclusion>
985-
<groupId>org.springframework.boot</groupId>
986-
<artifactId>spring-boot-starter-logging</artifactId>
987-
</exclusion>
984+
<exclusion>
985+
<groupId>org.springframework.boot</groupId>
986+
<artifactId>spring-boot-starter-logging</artifactId>
987+
</exclusion>
988988
</exclusions>
989989
</dependency>
990990
<dependency>
@@ -994,11 +994,11 @@ jiggling with excludes, .e.g. in Maven:
994994
----
995995

996996
To use Log4j 2, simply depend on `spring-boot-starter-log4j2` rather than
997-
`spring-boot-starter-log4j`
997+
`spring-boot-starter-log4j`.
998998

999-
NOTE: The use of the one of the Log4j starters gathers together the dependencies for
999+
NOTE: The use of one of the Log4j starters gathers together the dependencies for
10001000
common logging requirements (e.g. including having Tomcat use `java.util.logging` but
1001-
configure the output using Log4j or Log4j 2). See the Actuator Log4j or Log4j 2
1001+
configuring the output using Log4j or Log4j 2). See the Actuator Log4j or Log4j 2
10021002
samples for more detail and to see it in action.
10031003

10041004

@@ -1313,7 +1313,7 @@ that can be used to disable the migrations, or switch off the location checking.
13131313
By default Flyway will autowire the (`@Primary`) `DataSource` in your context and
13141314
use that for migrations. If you like to use a different `DataSource` you can create
13151315
one and mark its `@Bean` as `@FlywayDataSource` - if you do that remember to create
1316-
another one and mark it as `@Primary` if you want 2 data sources.
1316+
another one and mark it as `@Primary` if you want two data sources.
13171317
Or you can use Flyway's native `DataSource` by setting `flyway.[url,user,password]`
13181318
in external properties.
13191319

@@ -1350,7 +1350,7 @@ Spring Batch auto configuration is enabled by adding `@EnableBatchProcessing`
13501350
By default it executes *all* `Jobs` in the application context on startup (see
13511351
{sc-spring-boot-autoconfigure}/batch/JobLauncherCommandLineRunner.{sc-ext}[JobLauncherCommandLineRunner]
13521352
for details). You can narrow down to a specific job or jobs by specifying
1353-
`spring.batch.job.names` (comma separated job name patterns).
1353+
`spring.batch.job.names` (comma-separated job name patterns).
13541354

13551355
If the application context includes a `JobRegistry` then the jobs in
13561356
`spring.batch.job.names` are looked up in the registry instead of being autowired from the
@@ -1593,7 +1593,7 @@ To configure IntelliJ correctly you can use the `idea` Gradle plugin:
15931593
15941594
----
15951595

1596-
NOTE: Intellij must be configured to use the same Java version as the command line Gradle
1596+
NOTE: IntelliJ must be configured to use the same Java version as the command line Gradle
15971597
task and `springloaded` *must* be included as a `buildscript` dependency.
15981598

15991599
You can also additionally enable '`Make Project Automatically`' inside Intellij to
@@ -1622,7 +1622,7 @@ you would add the following:
16221622
</properties>
16231623
----
16241624

1625-
NOTE: this only works if your Maven project inherits (directly or indirectly) from
1625+
NOTE: This only works if your Maven project inherits (directly or indirectly) from
16261626
`spring-boot-dependencies`. If you have added `spring-boot-dependencies` in your
16271627
own `dependencyManagement` section with `<scope>import</scope>` you have to redefine
16281628
the artifact yourself instead of overriding the property .

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ from your command:
605605
[[production-ready-remote-shell-plugins]]
606606
==== Remote shell plugins
607607
In addition to new commands, it is also possible to extend other CRaSH shell features.
608-
All Spring Beans that extends `org.crsh.plugin.CRaSHPlugin` will be automatically
608+
All Spring Beans that extend `org.crsh.plugin.CRaSHPlugin` will be automatically
609609
registered with the shell.
610610

611611
For more information please refer to the http://www.crashub.org/[CRaSH reference
@@ -887,7 +887,7 @@ In `META-INF/spring.factories` file you have to activate the listener(s):
887887
=== Programmatically
888888
You can also activate a listener by invoking the `SpringApplication.addListeners(...)`
889889
method and passing the appropriate `Writer` object. This method also allows you to
890-
customize file name and path via the `Writer` constructor.
890+
customize the file name and path via the `Writer` constructor.
891891

892892

893893

@@ -899,5 +899,5 @@ might want to read about graphing tools such as http://graphite.wikidot.com/[Gra
899899

900900
Otherwise, you can continue on, to read about <<cloud-deployment.adoc#cloud-deployment,
901901
'`cloud deployment options`'>> or jump ahead
902-
for some in depth information about Spring Boot's
902+
for some in-depth information about Spring Boot's
903903
'<<build-tool-plugins.adoc#build-tool-plugins, build tool plugins>>'.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ using.
7676
[[cli-run]]
7777
=== Running applications using the CLI
7878
You can compile and run Groovy source code using the `run` command. The Spring Boot CLI
79-
is completely self contained so you don't need any external Groovy installation.
79+
is completely self-contained so you don't need any external Groovy installation.
8080

8181
Here is an example ``hello world'' web application written in Groovy:
8282

@@ -275,7 +275,7 @@ executable jar file. For example:
275275
The resulting jar will contain the classes produced by compiling the application and all
276276
of the application's dependencies so that it can then be run using `java -jar`. The jar
277277
file will also contain entries from the application's classpath. You can add explicit
278-
paths to the jar using `--include` and `--exclude` (both are comma separated, and both
278+
paths to the jar using `--include` and `--exclude` (both are comma-separated, and both
279279
accept prefixes to the values ``+'' and ``-'' to signify that they should be removed from
280280
the defaults). The default includes are
281281

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ There is a {github-code}/spring-boot-samples/spring-boot-sample-jersey[Jersey sa
10811081
you can see how to set things up. There is also a {github-code}/spring-boot-samples/spring-boot-sample-jersey1[Jersey 1.x sample].
10821082
Note that in the Jersey 1.x sample that the spring-boot maven plugin has been configured to
10831083
unpack some Jersey jars so they can be scanned by the JAX-RS implementation (the sample
1084-
asks for them to be scanned in its `Filter` registration.
1084+
asks for them to be scanned in its `Filter` registration).
10851085

10861086

10871087

@@ -1100,7 +1100,7 @@ Spring beans. This can be particularly convenient if you want to refer to a valu
11001100
your `application.properties` during configuration.
11011101

11021102
By default, if the context contains only a single Servlet it will be mapped to `/`. In
1103-
the case of multiple Servlets beans the bean name will be used as a path prefix. Filters
1103+
the case of multiple Servlet beans the bean name will be used as a path prefix. Filters
11041104
will map to `+/*+`.
11051105

11061106
If convention-based mapping is not flexible enough you can use the
@@ -1328,7 +1328,7 @@ auto-configured. In this example it's pulled in transitively via
13281328
[[boot-features-connect-to-production-database]]
13291329
==== Connection to a production database
13301330
Production database connections can also be auto-configured using a pooling
1331-
`DataSource`. Here's the algorithm for choosing a specific implementation.
1331+
`DataSource`. Here's the algorithm for choosing a specific implementation:
13321332

13331333
* We prefer the Tomcat pooling `DataSource` for its performance and concurrency, so if
13341334
that is available we always choose it.
@@ -1370,7 +1370,7 @@ loadable.
13701370
[[boot-features-connecting-to-a-jndi-datasource]]
13711371
==== Connection to a JNDI DataSource
13721372
If you are deploying your Spring Boot application to an Application Server you might want
1373-
to configure and manage your DataSource using you Application Servers built in features
1373+
to configure and manage your DataSource using your Application Servers built-in features
13741374
and access it using JNDI.
13751375

13761376
The `spring.datasource.jndi-name` property can be used as an alternative to the
@@ -1532,7 +1532,7 @@ their http://projects.spring.io/spring-data-jpa/[reference documentation].
15321532

15331533
[[boot-features-creating-and-dropping-jpa-databases]]
15341534
==== Creating and dropping JPA databases
1535-
By default JPA database will be automatically created *only* if you use an embedded
1535+
By default, JPA databases will be automatically created *only* if you use an embedded
15361536
database (H2, HSQL or Derby). You can explicitly configure JPA settings using
15371537
`+spring.jpa.*+` properties. For example, to create and drop tables you can add the
15381538
following to your `application.properties`.
@@ -1557,7 +1557,7 @@ passes `hibernate.globally_quoted_identifiers` to the Hibernate entity manager.
15571557
By default the DDL execution (or validation) is deferred until
15581558
the `ApplicationContext` has started. There is also a `spring.jpa.generate-ddl` flag, but
15591559
it is not used if Hibernate autoconfig is active because the `ddl-auto`
1560-
settings are more fine grained.
1560+
settings are more fine-grained.
15611561

15621562

15631563

@@ -1892,7 +1892,7 @@ connect to a broker using the the `netty` transport protocol. When the latter is
18921892
configured, Spring Boot configures a `ConnectionFactory` connecting to a broker running
18931893
on the local machine with the default settings.
18941894

1895-
NOTE: if you are using `spring-boot-starter-hornetq` the necessary dependencies to
1895+
NOTE: If you are using `spring-boot-starter-hornetq` the necessary dependencies to
18961896
connect to an existing HornetQ instance are provided, as well as the Spring infrastructure
18971897
to integrate with JMS. Adding `org.hornetq:hornetq-jms-server` to your application allows
18981898
you to use the embedded mode.
@@ -1909,7 +1909,7 @@ HornetQ configuration is controlled by external configuration properties in
19091909
----
19101910

19111911
When embedding the broker, you can chose if you want to enable persistence, and the list
1912-
of destinations that should be made available. These can be specified as a comma separated
1912+
of destinations that should be made available. These can be specified as a comma-separated
19131913
list to create them with the default options; or you can define bean(s) of type
19141914
`org.hornetq.jms.server.config.JMSQueueConfiguration` or
19151915
`org.hornetq.jms.server.config.TopicConfiguration`, for advanced queue and topic
@@ -2167,7 +2167,7 @@ If you use the
21672167
the following provided libraries:
21682168

21692169
* Spring Test -- integration test support for Spring applications.
2170-
* Junit -- The de-facto standard for unit testing Java applications.
2170+
* JUnit -- The de-facto standard for unit testing Java applications.
21712171
* Hamcrest -- A library of matcher objects (also known as constraints or predicates)
21722172
allowing `assertThat` style JUnit assertions.
21732173
* Mockito -- A Java mocking framework.
@@ -2235,7 +2235,7 @@ it with HTTP (e.g. using `RestTemplate`), annotate your test class (or one of it
22352235
superclasses) with `@IntegrationTest`. This can be very useful because it means you can
22362236
test the full stack of your application, but also inject its components into the test
22372237
class and use them to assert the internal state of the application after an HTTP
2238-
interaction. For Example:
2238+
interaction. For example:
22392239

22402240
[source,java,indent=0,subs="verbatim,quotes,attributes"]
22412241
----
@@ -2440,7 +2440,7 @@ You can use the
24402440
{sc-spring-boot-autoconfigure}/AutoConfigureAfter.{sc-ext}[`@AutoConfigureAfter`] or
24412441
{sc-spring-boot-autoconfigure}/AutoConfigureBefore.{sc-ext}[`@AutoConfigureBefore`]
24422442
annotations if your configuration needs to be applied in a specific order. For example,
2443-
if you provide web specific configuration, your class may need to be applied after
2443+
if you provide web-specific configuration, your class may need to be applied after
24442444
`WebMvcAutoConfiguration`.
24452445

24462446

@@ -2461,7 +2461,7 @@ code by annotating `@Configuration` classes or individual `@Bean` methods.
24612461
==== Class conditions
24622462
The `@ConditionalOnClass` and `@ConditionalOnMissingClass` annotations allows configuration
24632463
to be skipped based on the presence or absence of specific classes. Due to the fact that
2464-
annotation meta-data is parsed using http://asm.ow2.org/[ASM] you can actually use the
2464+
annotation metadata is parsed using http://asm.ow2.org/[ASM] you can actually use the
24652465
`value` attribute to refer to the real class, even though that class might not actually
24662466
appear on the running application classpath. You can also use the `name` attribute if you
24672467
prefer to specify the class name using a `String` value.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ and build system. Most IDEs can import Maven projects directly, for example Ecli
555555
can select `Import...` -> `Existing Maven Projects` from the `File` menu.
556556

557557
If you can't directly import your project into your IDE, you may be able to generate IDE
558-
meta-data using a build plugin. Maven includes plugins for
558+
metadata using a build plugin. Maven includes plugins for
559559
http://maven.apache.org/plugins/maven-eclipse-plugin/[Eclipse] and
560560
http://maven.apache.org/plugins/maven-idea-plugin/[IDEA]; Gradle offers plugins
561561
for http://www.gradle.org/docs/current/userguide/ide_support.html[various IDEs].
@@ -644,7 +644,7 @@ See the <<howto.adoc#howto-hotswapping, Hot swapping ``How-to''>> section for de
644644

645645
[[using-boot-packaging-for-production]]
646646
== Packaging your application for production
647-
Executable jars can be used for production deployment. As they are self contained, they
647+
Executable jars can be used for production deployment. As they are self-contained, they
648648
are also ideally suited for cloud-based deployment.
649649

650650
For additional ``production ready'' features, such as health, auditing and metric REST

spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class PropertiesLauncher extends Launcher {
8686
/**
8787
* Properties key for classpath entries (directories possibly containing jars).
8888
* Defaults to "lib/" (relative to {@link #HOME loader home directory}). Multiple
89-
* entries can be specified using a comma separeted list.
89+
* entries can be specified using a comma-separated list.
9090
*/
9191
public static final String PATH = "loader.path";
9292

0 commit comments

Comments
 (0)