Update so that it can be natively compiled by Spring Native 0.11
This commit is contained in:
@@ -38,7 +38,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
*
|
||||
* @author Michael Minella
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean({ Job.class })
|
||||
@ConditionalOnProperty(
|
||||
name = { "spring.cloud.task.batch.listener.enable",
|
||||
@@ -55,7 +55,7 @@ public class TaskBatchAutoConfiguration {
|
||||
/**
|
||||
* Auto configuration for {@link TaskBatchExecutionListener}.
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnMissingBean(name = "taskBatchExecutionListener")
|
||||
@EnableConfigurationProperties(TaskProperties.class)
|
||||
public static class TaskBatchExecutionListenerAutoconfiguration {
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
*
|
||||
* @author Glenn Renfro
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Conditional(JobLaunchCondition.class)
|
||||
@EnableConfigurationProperties(TaskBatchProperties.class)
|
||||
@AutoConfigureBefore(BatchAutoConfiguration.class)
|
||||
|
||||
@@ -66,7 +66,7 @@ public class PrefixTests {
|
||||
assertThat(jobIds.contains(1L));
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableBatchProcessing
|
||||
@TaskBatchTest
|
||||
@EnableTask
|
||||
|
||||
Reference in New Issue
Block a user