Skip to content

Commit ab4e9b5

Browse files
committed
Replacing deprecated class.
1 parent 595e3bb commit ab4e9b5

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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/

gamification/src/main/java/microservices/book/gamification/configuration/WebConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import org.springframework.context.annotation.Configuration;
44
import org.springframework.web.servlet.config.annotation.CorsRegistry;
55
import 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)

gateway/src/main/java/microservices/book/gateway/configuration/WebConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import org.springframework.context.annotation.Configuration;
44
import org.springframework.web.servlet.config.annotation.CorsRegistry;
55
import 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)

social-multiplication/src/main/java/microservices/book/multiplication/configuration/WebConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import org.springframework.context.annotation.Configuration;
44
import org.springframework.web.servlet.config.annotation.CorsRegistry;
55
import 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)

0 commit comments

Comments
 (0)