@@ -25,7 +25,7 @@ the static `SpringApplication.run` method:
2525 }
2626----
2727
28- When you application starts you should see something similar to the following:
28+ When your application starts you should see something similar to the following:
2929
3030[indent=0,subs="attributes"]
3131----
@@ -43,7 +43,7 @@ When you application starts you should see something similar to the following:
43432014-03-04 13:09:56.501 INFO 41370 --- [ main] o.s.b.s.app.SampleApplication : Started SampleApplication in 2.992 seconds (JVM running for 3.658)
4444----
4545
46- By default `INFO` logging messages will shown, including some relevant startup details
46+ By default `INFO` logging messages will be shown, including some relevant startup details
4747such as the user that launched the application.
4848
4949
@@ -103,8 +103,9 @@ context, otherwise there is no way for Spring Boot to create the `ServletContext
103103
104104[[boot-features-application-events-and-listeners]]
105105=== Application events and listeners
106- In addition to the usual Spring Framework events, such as `ContextRefreshedEvent`, a
107- `SpringApplication` sends some additional application events. Some events are actually
106+ In addition to the usual Spring Framework events, such as
107+ {spring-javadoc}/context/event/ContextRefreshedEvent.{dc-ext}[`ContextRefreshedEvent`],
108+ a `SpringApplication` sends some additional application events. Some events are actually
108109triggered before the `ApplicationContext` is created.
109110
110111You can register event listeners in a number of ways, the most common being
@@ -139,7 +140,7 @@ you need to override the default.
139140It is also possible to take complete control of the `ApplicationContext` type that will
140141be used by calling `setApplicationContextClass(...)`.
141142
142- TIP: It is often desirable call `setWebEnvironment(false)` when using `SpringApplication`
143+ TIP: It is often desirable to call `setWebEnvironment(false)` when using `SpringApplication`
143144within a JUnit test.
144145
145146
@@ -255,7 +256,8 @@ following locations and add them to the Spring `Environment`:
255256
256257The list is ordered by precedence (locations higher in the list override lower items).
257258
258- NOTE: You can also use YAML ('.yml') files as an alternative to '.properties' (see below)
259+ NOTE: You can also <<boot-features-external-config-yaml, use YAML ('.yml') files>> as
260+ an alternative to '.properties'.
259261
260262If you don't like `application.properties` as the configuration file name you can switch
261263to another by specifying a `spring.config.name` environment property. You can also refer
@@ -596,7 +598,7 @@ Logback routing is also included to ensure that dependent libraries that use
596598Java Util Logging, Commons Logging, Log4J or SLF4J will all work correctly.
597599
598600TIP: There are a lot of logging frameworks available for Java. Don't worry if the above
599- list seems confusing, generally you won't need to change your logging dependencues and
601+ list seems confusing, generally you won't need to change your logging dependencies and
600602the Spring Boot defaults will work just fine.
601603
602604
@@ -966,9 +968,9 @@ you can see how to set things up.
966968[[boot-features-sql]]
967969== Working with SQL databases
968970The Spring Framework provides extensive support for working with SQL databases. From
969- direct JDBC access using `JdbcTemplate` though to complete ``object relational mapping''
971+ direct JDBC access using `JdbcTemplate` to complete ``object relational mapping''
970972technologies such as Hibernate. Spring Data provides an additional level of functionality,
971- creating `Repoistory ` implementations directly from interfaces and using conventions to
973+ creating `Repository ` implementations directly from interfaces and using conventions to
972974generate queries from your method names.
973975
974976
@@ -983,7 +985,7 @@ credentials to establish a database connection.
983985
984986[[boot-features-embedded-database-support]]
985987==== Embedded Database Support
986- It's often convenient develop applications using an in-memory embedded database.
988+ It's often convenient to develop applications using an in-memory embedded database.
987989Obviously, in-memory databases do not provide persistent storage; you will need to
988990populate your database when your application starts and be prepared to throw away
989991data when your application ends.
@@ -1161,7 +1163,7 @@ how-to.
11611163[[boot-features-spring-data-jpa-repositories]]
11621164==== Spring Data JPA Repositories
11631165Spring Data JPA repositories are interfaces that you can define to access data. JPA
1164- queries are created automatically from your method names. For example, a `CityRepoistory `
1166+ queries are created automatically from your method names. For example, a `CityRepository `
11651167interface might declare a `findAllByState(String state)` method to find all cities
11661168in a given state.
11671169
@@ -1222,7 +1224,7 @@ http://projects.spring.io/spring-data-gemfire/[Gemfire],
12221224http://projects.spring.io/spring-data-couchbase/[Couchbase] and
12231225http://projects.spring.io/spring-data-cassandra/[Cassandra].
12241226Spring Boot provides auto-configuration for MongoDB; you can make use of the other
1225- project , but you will need to configure them yourself. Refer to the appropriate
1227+ projects , but you will need to configure them yourself. Refer to the appropriate
12261228reference documentation at http://projects.spring.io/spring-data.
12271229
12281230
@@ -1316,7 +1318,7 @@ See the `MongoOperations` Javadoc for complete details.
13161318[[boot-features-spring-data-mongo-repositories]]
13171319==== Spring Data MongoDB repositories
13181320Spring Data includes repository support for MongoDB. As with the JPA repositories
1319- discussed earlier, the basic principal is that queries are constructed for you
1321+ discussed earlier, the basic principle is that queries are constructed for you
13201322automatically based on method names.
13211323
13221324In fact, both Spring Data JPA and Spring Data MongoDB share the same common
@@ -1439,7 +1441,7 @@ useful when testing your application.
14391441==== ConfigFileApplicationContextInitializer
14401442`ConfigFileApplicationContextInitializer` is an `ApplicationContextInitializer` that
14411443can apply to your tests to load Spring Boot `application.properties` files. You can use
1442- when you don't need the full features provided by `@SpringApplicationConfiguration`.
1444+ this when you don't need the full features provided by `@SpringApplicationConfiguration`.
14431445
14441446[source,java,indent=0]
14451447----
@@ -1572,15 +1574,15 @@ when searching for beans.
15721574NOTE: `@Conditional` annotations are processed when `@Configuration` classes are
15731575parsed. Auto-configure `@Configuration` is always parsed last (after any user defined
15741576beans), however, if you are using these annotations on regular `@Configuration` classes,
1575- care must be take not to refer to bean definitions that have not yet been created.
1577+ care must be taken not to refer to bean definitions that have not yet been created.
15761578
15771579
15781580
15791581[[boot-features-resource-conditions]]
15801582==== Resource conditions
1581- The `@ConditionalOnResource` annotation allows configuration to be skipped when a specific
1582- resource is not present. Resources can be specified using the usual Spring conventions,
1583- for example, `file:/home/user/test.dat`.
1583+ The `@ConditionalOnResource` annotation allows configuration to be included only when a
1584+ specific resource is present. Resources can be specified using the usual Spring
1585+ conventions, for example, `file:/home/user/test.dat`.
15841586
15851587
15861588
0 commit comments