/*
 * Copyright 2002-2015 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.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package playground;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.web.reactive.config.CorsRegistry;
import org.springframework.web.reactive.config.WebReactiveConfiguration;

/**
 * @author Sebastien Deleuze
 */
@SpringBootApplication
@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
public class Application extends WebReactiveConfiguration {

	public static void main(String[] args) throws Exception {
		SpringApplication.run(Application.class, args);
	}

	@Override
	protected void addCorsMappings(CorsRegistry registry) {
		registry.addMapping("/cors/config");
	}
}

@@ -1096,16 +1096,22 @@
 .config.
+Enable
 WebReact
@@ -1113,29 +1113,86 @@
 Reactive
-Configuration
+;%0Aimport org.springframework.web.reactive.config.WebReactiveConfigurer
 ;%0A%0A/**%0A 
@@ -1246,16 +1246,35 @@
 ication%0A
+@EnableWebReactive%0A
 @EnableA
@@ -1393,14 +1393,17 @@
 ion 
-extend
+implement
 s We
@@ -1419,21 +1419,18 @@
 Configur
-ation
+er
  %7B%0A%0A%09pub
@@ -1555,16 +1555,13 @@
 e%0A%09p
-rotected
+ublic
  voi

Update for lastest Spring Web Reactive changes