File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
common/src/main/kotlin/com/cosmotech/api/config Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,8 @@ import org.springframework.core.env.ConfigurableEnvironment
2424import org.springframework.http.MediaType
2525import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
2626import org.springframework.scheduling.annotation.EnableAsync
27- import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
2827import org.springframework.web.servlet.config.annotation.CorsRegistry
29- import org.springframework.web.servlet.config.annotation.EnableWebMvc
30-
28+ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
3129
3230@Configuration
3331@ConfigurationPropertiesScan(basePackages = [" com.cosmotech" ])
@@ -97,10 +95,9 @@ class YamlMessageConverter(objectMapper: ObjectMapper) :
9795}
9896
9997@Configuration
100- @EnableWebMvc
101- class WebConfig : WebMvcConfigurer {
98+ class WebConfig : WebMvcConfigurer {
10299
103- override fun addCorsMappings (registry : CorsRegistry ) {
104- registry.addMapping(" /**" )
105- }
100+ override fun addCorsMappings (registry : CorsRegistry ) {
101+ registry.addMapping(" /**" )
102+ }
106103}
You can’t perform that action at this time.
0 commit comments