【问题标题】:Autowired a method from the @Config class自动装配来自 @Config 类的方法
【发布时间】:2020-04-26 15:30:38
【问题描述】:

我有下面提供的 SOAP 配置类:

【问题讨论】:

  • 您的 OrderingClient 似乎不是 Spring 组件,顺便说一下,您的 BrinkWebserviceClient 类是抽象的,我没有找到 brinkOrderingWebServiceTemplate 创建。 WebServiceGatewaySupport 不是 Spring 在其上创建 dinamyc 实现的类。
  • 好的。我在OrderingClient类的顶部添加了@Component注解,问题就解决了。

标签: java spring spring-boot


【解决方案1】:

您必须将 @Component 注释添加到 OrderingClient。

【讨论】:

    猜你喜欢
    • 2019-06-27
    • 2012-01-27
    • 1970-01-01
    • 1970-01-01
    • 2021-06-05
    • 2020-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多