Skip to content

Commit

Permalink
Polish contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 13, 2019
1 parent 91c0fba commit e7e5cce
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,7 +34,7 @@
* <pre class="code">
* &#064;Configuration
* &#064;EnableWebFlux
* &#064;ComponentScan(basePackageClasses = MyConfiguration.class)
* &#064;ComponentScan
* public class MyConfiguration {
* }
* </pre>
Expand All @@ -45,22 +45,23 @@
* <pre class="code">
* &#064;Configuration
* &#064;EnableWebFlux
* &#064;ComponentScan(basePackageClasses = MyConfiguration.class)
* &#064;ComponentScan
* public class MyConfiguration implements WebFluxConfigurer {
*
* private ObjectMapper objectMapper;
*
* &#064;Override
* public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
* &#064;Autowired
* private ObjectMapper objectMapper;
*
* &#064;Override
* public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
* configurer.defaultCodecs().jackson2JsonEncoder(
* new Jackson2JsonEncoder(objectMapper)
* );
* configurer.defaultCodecs().jackson2JsonDecoder(
* new Jackson2JsonDecoder(objectMapper)
* );
* }
* }
*
* // ...
* // ...
* }
* </pre>
*
Expand Down

0 comments on commit e7e5cce

Please sign in to comment.