报告不正确的 @EventListener 方法。

示例:


  @Configuration @ComponentScan
  open class Config

  data class MyEvent(val string: String)

  @Component
  class LogComponent {
    @EventListener // 使用 @EventListener 注解的方法必须为 public
    private fun logCommands(commandName: MyEvent) {}

    @EventListener // 方法必须最多只有一个参数
    fun processCommand(commandName: MyEvent, text: String) {}
  }