Skip to content

Commit ce23253

Browse files
committed
Added @Primay to code examples for setting Swagger properties programmatically
1 parent 9adc196 commit ce23253

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/docs/asciidoc/faq.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ These can be set by creating a `swaggerUiConfig` bean as follows:
145145
[source,kotlin]
146146
---
147147
@Bean
148+
@Primary
148149
fun swaggerUiConfig(config: SwaggerUiConfigProperties): SwaggerUiConfigProperties {
149150
config.showCommonExtensions = true
150151
config.queryConfigEnabled = true
@@ -1027,4 +1028,4 @@ When overriding the default spring-boot registered `HttpMessageConverter`, you s
10271028
converters.add(new ByteArrayHttpMessageConverter());
10281029
converters.add(new MappingJackson2HttpMessageConverter(jacksonBuilder.build()));
10291030
----
1030-
NOTE: Order is very important, when registering `HttpMessageConverters`.
1031+
NOTE: Order is very important, when registering `HttpMessageConverters`.

src/docs/asciidoc/v2/faq.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ These can be set by creating a `swaggerUiConfig` bean as follows:
145145
[source,kotlin]
146146
---
147147
@Bean
148+
@Primary
148149
fun swaggerUiConfig(config: SwaggerUiConfigProperties): SwaggerUiConfigProperties {
149150
config.showCommonExtensions = true
150151
config.queryConfigEnabled = true

0 commit comments

Comments
 (0)