webservice不在spring容器中,所以NullPointerException
使用ContextLoaderListener.getCurrentWebApplicationContext().getBean(HelloWorld.class);可以获得bean
本文详细阐述了在Spring容器中引入Webservice时遇到NullPointerException的问题,并提供了有效的解决方案,通过使用ContextLoaderListener及正确获取WebApplicationContext来解决。
webservice不在spring容器中,所以NullPointerException
使用ContextLoaderListener.getCurrentWebApplicationContext().getBean(HelloWorld.class);可以获得bean
1603

被折叠的 条评论
为什么被折叠?