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

后端 未结 6 1803
终归单人心
终归单人心 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:42

    It is answered here. Ultimately nothing worked other than adding below code to service impl.

        @PostConstruct
    public void init() {
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
    }
    

提交回复
热议问题