Update so that it can be natively compiled by Spring Native 0.11
This commit is contained in:
@@ -47,7 +47,7 @@ public class BatchEventsApplication {
|
||||
SpringApplication.run(BatchEventsApplication.class, args);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class JobConfiguration {
|
||||
|
||||
private static final int DEFAULT_CHUNK_COUNT = 3;
|
||||
|
||||
@@ -65,7 +65,7 @@ public class BatchEventsApplicationTests {
|
||||
|
||||
@EnableBinding(Sink.class)
|
||||
@PropertySource("classpath:io/spring/task/listener/job-listener-sink-channel.properties")
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class JobExecutionListenerBinding {
|
||||
|
||||
@StreamListener(Sink.INPUT)
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Michael Minella
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class JobConfiguration {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(JobConfiguration.class);
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
|
||||
* @author Michael Minella
|
||||
* @author Glenn Renfro
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Profile("embedded")
|
||||
public class EmbeddedDataSourceConfiguration {
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
|
||||
* Creates two data sources that use external databases.
|
||||
* @author Glenn Renfro
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@Profile("external")
|
||||
public class ExternalDataSourceConfiguration {
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class MultiDataSourcesExternalApplicationTests {
|
||||
.as("Unable to find update task message: " + output).isTrue();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class TaskLauncherConfiguration {
|
||||
|
||||
private static Server defaultServer;
|
||||
|
||||
@@ -57,7 +57,7 @@ import org.springframework.core.io.Resource;
|
||||
/**
|
||||
* @author Michael Minella
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class JobConfiguration {
|
||||
|
||||
private static final int GRID_SIZE = 4;
|
||||
|
||||
@@ -113,7 +113,7 @@ public class TaskPartitionerTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class TaskLauncherConfiguration {
|
||||
|
||||
@Bean(destroyMethod = "stop")
|
||||
|
||||
@@ -31,7 +31,7 @@ public class TaskEventsApplication {
|
||||
SpringApplication.run(TaskEventsApplication.class, args);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public static class TaskConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>io.spring.cloud</groupId>
|
||||
<artifactId>tasksink</artifactId>
|
||||
<version>2.3.1-SNAPSHOT</version>
|
||||
<version>2.4.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Task Sink Sample Application</name>
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.mockito.Mockito.mock;
|
||||
/**
|
||||
* @author Glenn Renfro
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class TaskSinkConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -70,7 +70,7 @@ public class TimestampTaskPropertiesTests {
|
||||
.isEqualTo(FORMAT);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(TimestampTaskProperties.class)
|
||||
static class Conf {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user