Body is not allowed for annotation classes. I thin...
# getting-started
j
Body is not allowed for annotation classes. I think in the end I will keep this specific annotations in java. I did not find a way of having the following in kotlin.
Copy code
@Target(ElementType.TYPE)
 @Retention(RetentionPolicy.RUNTIME)
 @Profile(Service1MockedProfile.NAME)
 public @interface Service1MockedProfile {

   String NAME = "Service1MockedProfile";
 }