Revert "Removes unneeded @Configuration"
This reverts commit 4940292b13.
This commit is contained in:
@@ -35,6 +35,7 @@ import org.springframework.cloud.function.adapter.azure.helper.HttpRequestMessag
|
||||
import org.springframework.cloud.function.adapter.azure.helper.TestExecutionContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -90,6 +91,7 @@ public class AzureFunctionInstanceInjectorTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ComponentScan
|
||||
public static class MySpringConfig {
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ import org.springframework.cloud.function.adapter.azure.helper.TestExecutionCont
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.ComponentScan.Filter;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.FilterType;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -96,6 +97,7 @@ public class FunctionInstanceInjectorServiceLoadingTest {
|
||||
return functionInstanceInjector;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class)})
|
||||
public static class MyMainConfig {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user