Если вы проверите источник @ActiveProfiles
, вы увидите следующий конструктор:
/**
* Alias for {@link #profiles}.
* <p>This attribute may <strong>not</strong> be used in conjunction with
* {@link #profiles}, but it may be used <em>instead</em> of {@link #profiles}.
*/
@AliasFor("profiles")
String[] value() default {};
Это означает, что он ожидает массив строк для «профилей» -> просто создайте массив, как обычно сделайте это в Kotlin и передайте конструктору так:
@ActiveProfiles(profiles = arrayOf("profile1", "profile1"))