Kotliners! I have a quick question. In Spring Boot...
# announcements
x
Kotliners! I have a quick question. In Spring Boot, I usually define "annotations" (something like
public @interface SpringWebMockMvcTest
) in order to group a bunch of another "real" annotations...is there any way to do the same in Kotlin? This is what I'm trying to achieve:
Copy code
@Inherited
@Target(ElementType.TYPE)
@ActiveProfiles("dev")
@Retention(RetentionPolicy.RUNTIME)
@ContextConfiguration(classes = Application.class)
@AutoConfigureMockMvc(print = MockMvcPrint.LOG_DEBUG)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public @interface SpringWebMockMvcTest {
  // ...
}
stackoverflow 1