使用jax ws + Spring Boot,@ Aututired为null

时间:2017-05-29 15:46:17

标签: spring-boot jax-ws autowired

@Autowired带注释的类变量以Null的形式出现。 jax ws Web服务使用Spring Boot和Endpoint来实现。

1 个答案:

答案 0 :(得分:-1)

尝试查看您是否错过了要自动装配的班级中的@Component@Service注释。
另外看看这里:
Why is my Spring @Autowired field null?