See https://github.com/spring-projects-experimental/spring-native/issues/1694
Comment From: snicoll
It's actually not working on the JVM either (with an @Order
specified on the class).
Comment From: snicoll
That's because a GenericApplicationContext
doesn't have the required comparator by default. We should add beanFactory.setDependencyComparator(AnnotationAwareOrderComparator.INSTANCE);