With auto configuration enabled, my Spring Integration service activator gives me an error in IntelliJ: "Could not autowire. No beans of 'String' type found."
If I disable auto configuration, the error goes away.
Can I exclude a class from auto configuration to "fix" this? How do I know which?
Here's the @ServiceActivator:
@Slf4j
@MessageEndpoint
public class StringProcessor {
@ServiceActivator(inputChannel = "channel1")
public void processString(String s) {
log.info(s);
}
}
The error can be toggled by the @EnableAutoConfiguration (@SpringBootApplication) annotation:
//@SpringBootApplication
@ComponentScan
@Configuration
@EnableAutoConfiguration
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
How do I figure out if this is an IntelliJ false alarm, a Spring Integration issue, or am I holding it wrong? ;o)