BAEL-3804: Update spring-mvc-java to use latest Spring Boot version (#8747)
This commit is contained in:
parent
67f29a37cd
commit
1ad0bfaf29
|
@ -223,8 +223,6 @@
|
|||
</profiles>
|
||||
|
||||
<properties>
|
||||
<spring-boot.version>2.1.9.RELEASE</spring-boot.version>
|
||||
|
||||
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
|
||||
|
||||
<!-- persistence -->
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package com.baeldung.spring.web.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
|
||||
|
||||
@Configuration
|
||||
public class CustomWebMvcConfigurationSupport extends WebMvcConfigurationSupport {
|
||||
|
||||
@Bean
|
||||
public RequestMappingHandlerMapping requestMappingHandlerMapping() {
|
||||
RequestMappingHandlerMapping handlerMapping = super.requestMappingHandlerMapping();
|
||||
handlerMapping.setUseSuffixPatternMatch(false);
|
||||
return handlerMapping;
|
||||
@Override
|
||||
protected PathMatchConfigurer getPathMatchConfigurer() {
|
||||
PathMatchConfigurer pathMatchConfigurer = super.getPathMatchConfigurer();
|
||||
pathMatchConfigurer.setUseSuffixPatternMatch(false);
|
||||
|
||||
return pathMatchConfigurer;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public class GreetControllerIntegrationTest {
|
|||
|
||||
private MockMvc mockMvc;
|
||||
|
||||
private static final String CONTENT_TYPE = "application/json;charset=UTF-8";
|
||||
private static final String CONTENT_TYPE = "application/json";
|
||||
|
||||
@Before
|
||||
public void setup() throws Exception {
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
|||
public class GreetControllerUnitTest {
|
||||
|
||||
private MockMvc mockMvc;
|
||||
private static final String CONTENT_TYPE = "application/json;charset=UTF-8";
|
||||
private static final String CONTENT_TYPE = "application/json";
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
|
|
Loading…
Reference in New Issue