Merge pull request #5664 from amit2103/BAEL-10234

[BAEL-10234] - Removed deprecated properties
This commit is contained in:
Loredana Crusoveanu 2018-11-11 23:21:52 +02:00 committed by GitHub
commit 340a502d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,3 @@
server.port=8082
server.context-path=/spring-rest-full
server.servlet.context-path=/spring-rest-full
endpoints.metrics.enabled=true

View File

@ -6,13 +6,13 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
@Configuration
@ComponentScan("org.baeldung.web")
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
public class WebConfig implements WebMvcConfigurer {
public WebConfig() {
super();
@ -29,7 +29,6 @@ public class WebConfig extends WebMvcConfigurerAdapter {
// API
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
super.addViewControllers(registry);
registry.addViewController("/homepage.html");
}

View File

@ -1,2 +1,2 @@
server.port=8082
server.context-path=/spring-rest-query-language
server.servlet.context-path=/spring-rest-query-language

View File

@ -34,6 +34,10 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Spring -->
<dependency>

View File

@ -1,2 +1,2 @@
server.port= 8082
server.context-path=/spring-rest
server.servlet.context-path=/spring-rest