Is it possible to use @ConditionalOnProperty
on TYPE level so it sees/evaluates properties defined in non-default properties files?
Following seems to work only when the property is defined in the default properties file, i.e. in application.properties
@Configuration
@ConditionalOnProperty(prefix = "jmx.rmi", value = "enabled")
public class JmxConfiguration {
// JMX related stuff
}