SR-330 'javax.inject.Inject' annotation found and supported for autowiring

网上看大部分是断点引起的问题  但是本项目的问题不同 在于

@Configuration
public class WsConfig {

    @Value("${ws.username}")
    private String userName;

    @Value("${ws.password}")
    private String password;

    @Value("${ws.wsdl}")
    private String wsdl;
    @Bean
    public WebServicePortType chufaWebService() throws MalformedURLException {
        WebService webService =  new WebService(new URL(wsdl));
        return webService.getWebServiceHttpPort();
    }
}

配置文件${ws.wsdl}  地址无法连通导致的问题

posted @ 2021-11-25 16:55  TIFOSI_Z  阅读(344)  评论(0)    收藏  举报