JAX WS webservice does not take spring bean from applicationcontext, hence throws null pointer exception

后端 未结 6 1830
终归单人心
终归单人心 2021-01-18 07:55

Hi I have got the webservice up and running , i have used jax ws. I have used Spring to be able to use beans with Autowired and stuff that spring gives like property value i

6条回答
  •  长情又很酷
    2021-01-18 08:43

    Your TestService (which is annotated with @WebService) should extend "SpringBeanAutowiringSupport" class to kick start spring binding.

    Please have a look at the duffmo mentioned points as well.

提交回复
热议问题