diff --git a/parent-boot-2/README.md b/parent-boot-2/README.md
new file mode 100644
index 0000000000..ff12555376
--- /dev/null
+++ b/parent-boot-2/README.md
@@ -0,0 +1 @@
+## Relevant articles:
diff --git a/parent-boot-2/pom.xml b/parent-boot-2/pom.xml
new file mode 100644
index 0000000000..a9c54dece9
--- /dev/null
+++ b/parent-boot-2/pom.xml
@@ -0,0 +1,120 @@
+
+ 4.0.0
+ com.baeldung
+ parent-boot-2
+ 0.0.1-SNAPSHOT
+ pom
+ Parent Boot 2
+ Parent for all spring boot 2 modules
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.0.1.RELEASE
+
+
+
+
+
+ junit
+ junit
+ test
+
+
+ io.rest-assured
+ rest-assured
+ ${rest-assured.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ ${maven-surefire-plugin.version}
+
+ 3
+ true
+
+ **/*IntegrationTest.java
+ **/*LongRunningUnitTest.java
+ **/*ManualTest.java
+ **/*LiveTest.java
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven-compiler-plugin.version}
+
+ ${maven.compiler.source}
+ ${maven.compiler.target}
+
+
+
+
+
+
+
+ integration
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ integration-test
+
+ test
+
+
+
+ **/*ManualTest.java
+ **/*LiveTest.java
+ **/AutoconfigurationTest.java
+ **/*UnitTest.java
+
+
+ **/*IntegrationTest.java
+ */EthControllerTestOne.java
+ **/*IntTest.java
+ **/*EntryPointsTest.java
+
+
+
+
+
+
+ json
+
+
+
+
+
+
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+ 3.1.0
+
+ 1.8
+ 1.8
+
+
+
\ No newline at end of file
diff --git a/spring-rest/pom.xml b/spring-rest/pom.xml
index 58d974cdba..d56eb9949b 100644
--- a/spring-rest/pom.xml
+++ b/spring-rest/pom.xml
@@ -8,9 +8,10 @@
war
- spring-boot-starter-parent
- org.springframework.boot
- 2.0.1.RELEASE
+ parent-boot-2
+ com.baeldung
+ 0.0.1-SNAPSHOT
+ ../parent-boot-2
diff --git a/spring-rest/src/main/java/com/baeldung/web/log/config/TaxiFareMVCConfig.java b/spring-rest/src/main/java/com/baeldung/web/log/config/TaxiFareMVCConfig.java
index f433b4f3c7..8f1a000acc 100644
--- a/spring-rest/src/main/java/com/baeldung/web/log/config/TaxiFareMVCConfig.java
+++ b/spring-rest/src/main/java/com/baeldung/web/log/config/TaxiFareMVCConfig.java
@@ -4,10 +4,10 @@ import com.baeldung.web.log.app.TaxiFareRequestInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
-public class TaxiFareMVCConfig extends WebMvcConfigurerAdapter {
+public class TaxiFareMVCConfig implements WebMvcConfigurer {
@Autowired
private TaxiFareRequestInterceptor taxiFareRequestInterceptor;
diff --git a/spring-rest/src/main/java/org/baeldung/config/WebConfig.java b/spring-rest/src/main/java/org/baeldung/config/WebConfig.java
index 5a6f906204..b3e3cd179a 100644
--- a/spring-rest/src/main/java/org/baeldung/config/WebConfig.java
+++ b/spring-rest/src/main/java/org/baeldung/config/WebConfig.java
@@ -1,7 +1,15 @@
package org.baeldung.config;
+import java.text.SimpleDateFormat;
+import java.util.List;
+
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
+import org.springframework.http.converter.xml.MarshallingHttpMessageConverter;
+import org.springframework.oxm.xstream.XStreamMarshaller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -17,31 +25,30 @@ public class WebConfig implements WebMvcConfigurer {
super();
}
- //
/*
- @Override
- public void configureMessageConverters(final List> messageConverters) {
- final Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
- builder.indentOutput(true)
- .dateFormat(new SimpleDateFormat("dd-MM-yyyy hh:mm"));
- messageConverters.add(new MappingJackson2HttpMessageConverter(builder.build()));
- // messageConverters.add(new MappingJackson2XmlHttpMessageConverter(builder.createXmlMapper(true).build()));
-
- // messageConverters.add(createXmlHttpMessageConverter());
- // messageConverters.add(new MappingJackson2HttpMessageConverter());
-
- // messageConverters.add(new ProtobufHttpMessageConverter());
- super.configureMessageConverters(messageConverters);
- }
-
- private HttpMessageConverter