Migrate to Asciidoctor Tabs
This commit is contained in:
@@ -38,12 +38,10 @@ you can instead write the following:
|
||||
registerBean { Bar(it.getBean()) }
|
||||
}
|
||||
----
|
||||
====
|
||||
|
||||
When the class `Bar` has a single constructor, you can even just specify the bean class,
|
||||
the constructor parameters will be autowired by type:
|
||||
|
||||
====
|
||||
[source,kotlin,indent=0]
|
||||
----
|
||||
val context = GenericApplicationContext().apply {
|
||||
|
||||
@@ -256,7 +256,6 @@ in order to use `val` instead of `lateinit var`. You can use
|
||||
{api-spring-framework}/test/context/TestConstructor.html[`@TestConstructor(autowireMode = AutowireMode.ALL)`]
|
||||
to enable autowiring for all parameters.
|
||||
|
||||
====
|
||||
[source,kotlin,indent=0]
|
||||
----
|
||||
@SpringJUnitConfig(TestConfig::class)
|
||||
@@ -267,7 +266,6 @@ class OrderServiceIntegrationTests(val orderService: OrderService,
|
||||
// tests that use the injected OrderService and CustomerService
|
||||
}
|
||||
----
|
||||
====
|
||||
|
||||
|
||||
[[per_class-lifecycle]]
|
||||
|
||||
Reference in New Issue
Block a user