mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#1314 Fix some typos
This commit is contained in:
parent
a0b60a6bf4
commit
3df399f693
@ -682,9 +682,9 @@ A mapper which uses other mapper classes (see <<invoking-other-mappers>>) will o
|
||||
=== Injection strategy
|
||||
|
||||
When using <<using-dependency-injection,dependency injection>>, you can choose between field and constructor injection.
|
||||
This can be done by either providing the injection strategy via `Mapper` or `MapperConfig` annotation.
|
||||
This can be done by either providing the injection strategy via `@Mapper` or `@MapperConfig` annotation.
|
||||
|
||||
.Obtaining a mapper via dependency injection
|
||||
.Using constructor injection
|
||||
====
|
||||
[source, java, linenums]
|
||||
[subs="verbatim,attributes"]
|
||||
@ -702,7 +702,10 @@ When `InjectionStrategy#FIELD` is used, the annotation is on the field itself.
|
||||
For now, the default injection strategy is field injection.
|
||||
It is recommended to use constructor injection to simplify testing.
|
||||
|
||||
TIP: For abstract classes or decorators setter injection should be used.
|
||||
[TIP]
|
||||
====
|
||||
For abstract classes or decorators setter injection should be used.
|
||||
====
|
||||
|
||||
[[datatype-conversions]]
|
||||
== Data type conversions
|
||||
|
Loading…
x
Reference in New Issue
Block a user