Merge pull request #5664 from amit2103/BAEL-10234
[BAEL-10234] - Removed deprecated properties
This commit is contained in:
commit
340a502d7c
|
@ -1,3 +1,3 @@
|
|||
server.port=8082
|
||||
server.context-path=/spring-rest-full
|
||||
server.servlet.context-path=/spring-rest-full
|
||||
endpoints.metrics.enabled=true
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
server.port=8082
|
||||
server.context-path=/spring-rest-query-language
|
||||
server.servlet.context-path=/spring-rest-query-language
|
|
@ -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>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
server.port= 8082
|
||||
server.context-path=/spring-rest
|
||||
server.servlet.context-path=/spring-rest
|
Loading…
Reference in New Issue