This commit is contained in:
Phillip Webb 2014-11-06 22:43:31 -08:00
parent 96a031cf20
commit 0c3911162b
2 changed files with 4 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ JDBC or JPA (then that one will be picked up by any `@Autowired` injections).
[[howto-use-spring-data-repositories]] [[howto-use-spring-data-repositories]]
=== Use Spring Data repositories === Use Spring Data repositories
Spring Data can create implementations for you of `@Repository` interfaces of various Spring Data can create implementations for you of `@Repository` interfaces of various
flavours. Spring Boot will handle all of that for you as long as those `@Repositories` flavors. Spring Boot will handle all of that for you as long as those `@Repositories`
are included in the same package (or a sub-package) of your `@EnableAutoConfiguration` are included in the same package (or a sub-package) of your `@EnableAutoConfiguration`
class. class.

View File

@ -50,6 +50,7 @@ use `@..@` placeholders (you can override that with a Maven property
`resource.delimiter`). `resource.delimiter`).
[[using-boot-maven-parent-pom]] [[using-boot-maven-parent-pom]]
==== Inheriting the starter parent ==== Inheriting the starter parent
To configure your project to inherit from the `spring-boot-starter-parent` simply set To configure your project to inherit from the `spring-boot-starter-parent` simply set
@ -547,6 +548,8 @@ required `RiskAssessor` bean.
TIP: Notice how using constructor injection allows the `riskAssessor` field to be marked TIP: Notice how using constructor injection allows the `riskAssessor` field to be marked
as `final`, indicating that it cannot be subsequently changed. as `final`, indicating that it cannot be subsequently changed.
[[using-boot-running-your-application]] [[using-boot-running-your-application]]
== Running your application == Running your application
One of the biggest advantages of packaging your application as jar and using an embedded One of the biggest advantages of packaging your application as jar and using an embedded