Skip to content

Commit 29cad99

Browse files
committed
no more MVC annotation
1 parent 82093a7 commit 29cad99

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

common/src/main/kotlin/com/cosmotech/api/config/CsmApiConfiguration.kt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ import org.springframework.core.env.ConfigurableEnvironment
2424
import org.springframework.http.MediaType
2525
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
2626
import org.springframework.scheduling.annotation.EnableAsync
27-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
2827
import 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
}

0 commit comments

Comments
 (0)