Add explanations about implicit autowiring

This commit is contained in:
Sebastien Deleuze
2018-05-13 16:10:30 +02:00
parent 26c38ee1ca
commit 5a4148c984

View File

@@ -569,7 +569,7 @@ And we create an "article" new one.
{{> footer}}
----
We update the `HtmlController` in order to render blog and article pages with rendered markdown and formatted date.
We update the `HtmlController` in order to render blog and article pages with rendered markdown and formatted date. `ArticleRepository` and `MarkdownConverter` constructor parameters will be automatically autowired since `HtmlController` has a single constructor (implicit `@Autowired`).
`src/main/kotlin/blog/HtmlController.kt`
[source,kotlin]