【问题标题】:@Autowired is null with jax ws + Spring Boot@Autowired 对于 jax ws + Spring Boot 为空
【发布时间】:2017-10-29 23:43:09
【问题描述】:

@Autowired 带注释的类变量以 Null 形式出现。 jax ws web service 已经使用 Spring Boot 和 Endpoint 来实现。

【问题讨论】:

  • 你应该展示你的代码。

标签: spring-boot jax-ws autowired


【解决方案1】:

尝试查看您是否在要自动装配的类中遗漏了@Component@Service 注释。
也看看这里:
Why is my Spring @Autowired field null?

【讨论】:

    猜你喜欢
    • 2020-10-11
    • 1970-01-01
    • 2014-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多