Skip to content

Commit e7e5cce

Browse files
committed
Polish contribution
See gh-23457
1 parent 91c0fba commit e7e5cce

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/config/EnableWebFlux.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434
* <pre class="code">
3535
* &#064;Configuration
3636
* &#064;EnableWebFlux
37-
* &#064;ComponentScan(basePackageClasses = MyConfiguration.class)
37+
* &#064;ComponentScan
3838
* public class MyConfiguration {
3939
* }
4040
* </pre>
@@ -45,22 +45,23 @@
4545
* <pre class="code">
4646
* &#064;Configuration
4747
* &#064;EnableWebFlux
48-
* &#064;ComponentScan(basePackageClasses = MyConfiguration.class)
48+
* &#064;ComponentScan
4949
* public class MyConfiguration implements WebFluxConfigurer {
50-
*
51-
* private ObjectMapper objectMapper;
5250
*
53-
* &#064;Override
54-
* public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
51+
* &#064;Autowired
52+
* private ObjectMapper objectMapper;
53+
*
54+
* &#064;Override
55+
* public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
5556
* configurer.defaultCodecs().jackson2JsonEncoder(
5657
* new Jackson2JsonEncoder(objectMapper)
5758
* );
5859
* configurer.defaultCodecs().jackson2JsonDecoder(
5960
* new Jackson2JsonDecoder(objectMapper)
6061
* );
61-
* }
62+
* }
6263
*
63-
* // ...
64+
* // ...
6465
* }
6566
* </pre>
6667
*

0 commit comments

Comments
 (0)