mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-28 03:01:09 +08:00
refactor(forgeboot-webmvc): 移除 VersionAutoConfiguration 中未使用的 WebMvcConfigurer 导入移除了 VersionAutoConfiguration.kt 文件中未使用的 WebMvcConfigurer 导入语句,简化了代码结构并提高了代码的可读性。
This commit is contained in:
parent
b2ce2c46dd
commit
051c0e44da
@ -7,7 +7,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.context.annotation.Bean
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.web.cors.CorsConfigurationSource
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
||||
|
||||
/**
|
||||
*版本自动配置
|
||||
@ -20,7 +19,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
|
||||
open class VersionAutoConfiguration(
|
||||
private val versionProperties: VersionProperties,
|
||||
private val corsConfigurationSource: CorsConfigurationSource
|
||||
) : WebMvcConfigurer {
|
||||
) {
|
||||
/**
|
||||
* 创建并配置一个 ApiVersionRequestMappingHandlerMapping 实例
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user