@@ -5447,8 +5447,8 @@ You can also configure the Spring Kafka `JsonDeserializer` as follows:
54475447[source,properties,indent=0]
54485448----
54495449spring.kafka.consumer.value-deserializer=org.springframework.kafka.support.serializer.JsonDeserializer
5450- spring.kafka.consumer.properties.spring.json.value.default.type=org.foo .Invoice
5451- spring.kafka.consumer.properties.spring.json.trusted.packages=org.foo ,org.bar
5450+ spring.kafka.consumer.properties.spring.json.value.default.type=com.example .Invoice
5451+ spring.kafka.consumer.properties.spring.json.trusted.packages=com.example ,org.acme
54525452----
54535453
54545454Similarly, you can disable the `JsonSerializer` default behavior of sending type
@@ -7671,28 +7671,28 @@ annotated].
76717671[[boot-features-kotlin-api-runapplication]]
76727672==== runApplication
76737673Spring Boot provides an idiomatic way to run an application with
7674- `runApplication<FooApplication >(*args)` as shown in the following example:
7674+ `runApplication<MyApplication >(*args)` as shown in the following example:
76757675
76767676[source,kotlin,indent=0]
76777677----
76787678import org.springframework.boot.autoconfigure.SpringBootApplication
76797679import org.springframework.boot.runApplication
76807680
76817681@SpringBootApplication
7682- class FooApplication
7682+ class MyApplication
76837683
76847684fun main(args: Array<String>) {
7685- runApplication<FooApplication >(*args)
7685+ runApplication<MyApplication >(*args)
76867686}
76877687----
76887688
76897689This is a drop-in replacement for
7690- `SpringApplication.run(FooApplication ::class.java, *args)`. It also allows customization
7690+ `SpringApplication.run(MyApplication ::class.java, *args)`. It also allows customization
76917691of the application as shown in the following example:
76927692
76937693[source,kotlin,indent=0]
76947694----
7695- runApplication<FooApplication >(*args) {
7695+ runApplication<MyApplication >(*args) {
76967696 setBannerMode(OFF)
76977697}
76987698----
@@ -7741,17 +7741,17 @@ constructors are {github-issues}8762[not yet supported].
77417741@ConfigurationProperties("example.kotlin")
77427742class KotlinExampleProperties {
77437743
7744- lateinit var foo1 : String
7744+ lateinit var name : String
77457745
7746- lateinit var foo2 : String
7746+ lateinit var description : String
77477747
7748- val bar = Bar ()
7748+ val myService = MyService ()
77497749
7750- class Bar {
7750+ class MyService {
77517751
7752- lateinit var bar1 : String
7752+ lateinit var apiToken : String
77537753
7754- lateinit var bar2: String
7754+ lateinit var uri: URI
77557755
77567756 }
77577757
0 commit comments