我想使用控制器名称和版本创建ApiController注释。我的代码:
@Target(AnnotationTarget.CLASS, AnnotationTarget.FILE)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
@Component
@RequestMapping("/api/v1/", produces = [MediaType.APPLICATION_JSON_VALUE])
annotation class ApiController(
@get:AliasFor(annotation = Component::class)
val value: String = "",
@get:AliasFor(annotation = RequestMapping::class, value = "value")
val endpointName: String,
val version: Int = 1
)
我不知道接下来该怎么做。