编程语言
首页 > 编程语言> > SR-330 'javax.inject.Inject' annotation found and supported for autowiring

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}  地址无法连通导致的问题

标签:String,SR,supported,Value,private,ws,autowiring,wsdl,webService
来源: https://www.cnblogs.com/aidaminiu/p/15603510.html