File tree Expand file tree Collapse file tree 4 files changed +33
-6
lines changed
gamification/src/main/java/microservices/book/gamification/configuration
gateway/src/main/java/microservices/book/gateway/configuration
social-multiplication/src/main/java/microservices/book/multiplication/configuration Expand file tree Collapse file tree 4 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 1+ target /
2+ ! .mvn /wrapper /maven-wrapper.jar
3+
4+ # ## STS ###
5+ .apt_generated
6+ .classpath
7+ .factorypath
8+ .project
9+ .settings
10+ .springBeans
11+
12+ # ## IntelliJ IDEA ###
13+ .idea
14+ * .iws
15+ * .iml
16+ * .ipr
17+
18+ # ## NetBeans ###
19+ nbproject /private /
20+ build /
21+ nbbuild /
22+ dist /
23+ nbdist /
24+ .nb-gradle /
Original file line number Diff line number Diff line change 33import org .springframework .context .annotation .Configuration ;
44import org .springframework .web .servlet .config .annotation .CorsRegistry ;
55import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
6- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
6+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
77
88/**
99 * @author moises.macero
1010 */
1111@ Configuration
1212@ EnableWebMvc
13- public class WebConfiguration extends WebMvcConfigurerAdapter {
13+ //BOOT2 changed to interface WebMvcConfigurer instead of subclass of WebMvcConfigurerAdapter
14+ public class WebConfiguration implements WebMvcConfigurer {
1415
1516 /**
1617 * Enables Cross-Origin Resource Sharing (CORS)
Original file line number Diff line number Diff line change 33import org .springframework .context .annotation .Configuration ;
44import org .springframework .web .servlet .config .annotation .CorsRegistry ;
55import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
6- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
6+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
77
88/**
99 * @author moises.macero
1010 */
1111@ Configuration
1212@ EnableWebMvc
13- public class WebConfiguration extends WebMvcConfigurerAdapter {
13+ //BOOT2 changed to interface WebMvcConfigurer instead of subclass of WebMvcConfigurerAdapter
14+ public class WebConfiguration implements WebMvcConfigurer {
1415
1516 /**
1617 * Enables Cross-Origin Resource Sharing (CORS)
Original file line number Diff line number Diff line change 33import org .springframework .context .annotation .Configuration ;
44import org .springframework .web .servlet .config .annotation .CorsRegistry ;
55import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
6- import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
6+ import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
77
88/**
99 * @author moises.macero
1010 */
1111@ Configuration
1212@ EnableWebMvc
13- public class WebConfiguration extends WebMvcConfigurerAdapter {
13+ //BOOT2 changed to interface WebMvcConfigurer instead of subclass of WebMvcConfigurerAdapter
14+ public class WebConfiguration implements WebMvcConfigurer {
1415
1516 /**
1617 * Enables Cross-Origin Resource Sharing (CORS)
You can’t perform that action at this time.
0 commit comments