How to make an @WebService spring aware

后端 未结 3 393
长情又很酷
长情又很酷 2020-12-08 23:58

I have a Web Service which I am trying to Autowire a variable into. Here is the class:

package com.xetius.isales.pr7.service;

import java.util.Arrays;
impo         


        
3条回答
  •  一生所求
    2020-12-09 00:33

    Depending on container version or even the Spring, hereinafter you will have an easy solution to expose your WSDL, use:

    @PostConstruct
    SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
    

提交回复
热议问题