Skip to content

Commit 64a4f70

Browse files
committed
Avoid use of foo and bar in doc
1 parent 73ec973 commit 64a4f70

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,13 +1983,15 @@ services use self-signed certificates, you need to set the following property:
19831983

19841984
=== Custom context path
19851985

1986-
If the server's context-path has been configured to anything other then `/`, the Cloud Foundry endpoints
1987-
will not be available at the root of the application. For example, if `server.servlet.context-path=/foo`,
1988-
Cloud Foundry endpoints will be available at `/foo/cloudfoundryapplication/*`.
1989-
1990-
If you expect the Cloud Foundry endpoints to always be available at `/cloudfoundryapplication/*`, regardless of
1991-
the server's context-path, you will need to explicitly configure that in your application. The configuration will differ
1992-
depending on the web server in use. For Tomcat, the following configuration can be added:
1986+
If the server's context-path has been configured to anything other then `/`, the Cloud
1987+
Foundry endpoints will not be available at the root of the application. For example, if
1988+
`server.servlet.context-path=/app`, Cloud Foundry endpoints will be available at
1989+
`/app/cloudfoundryapplication/*`.
1990+
1991+
If you expect the Cloud Foundry endpoints to always be available at
1992+
`/cloudfoundryapplication/*`, regardless of the server's context-path, you will need to
1993+
explicitly configure that in your application. The configuration will differ depending on
1994+
the web server in use. For Tomcat, the following configuration can be added:
19931995

19941996
[source,java,indent=0]
19951997
----

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5447,8 +5447,8 @@ You can also configure the Spring Kafka `JsonDeserializer` as follows:
54475447
[source,properties,indent=0]
54485448
----
54495449
spring.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

54545454
Similarly, you can disable the `JsonSerializer` default behavior of sending type
@@ -7671,28 +7671,28 @@ annotated].
76717671
[[boot-features-kotlin-api-runapplication]]
76727672
==== runApplication
76737673
Spring 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
----
76787678
import org.springframework.boot.autoconfigure.SpringBootApplication
76797679
import org.springframework.boot.runApplication
76807680
76817681
@SpringBootApplication
7682-
class FooApplication
7682+
class MyApplication
76837683
76847684
fun main(args: Array<String>) {
7685-
runApplication<FooApplication>(*args)
7685+
runApplication<MyApplication>(*args)
76867686
}
76877687
----
76887688

76897689
This 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
76917691
of 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")
77427742
class 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

Comments
 (0)