Java教程

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

这篇关于SR-330 'javax.inject.Inject' annotation found and supported for autowiring的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!