[BAEL-10234] - Removed deprecated properties

This commit is contained in:
amit2103 2018-11-12 01:16:00 +05:30
parent 8d9f995624
commit a9a50b79f5
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