当前位置: 代码迷 >> Java相关 >> ContextLoader.getCurrentWebApplicationContext() 返回值为空,该怎么解决
  详细解决方案

ContextLoader.getCurrentWebApplicationContext() 返回值为空,该怎么解决

热度:281   发布时间:2016-04-22 20:58:40.0
ContextLoader.getCurrentWebApplicationContext() 返回值为空
请教大家,我想得到spring的applicationContext.xml 文件 ,我使用ContextLoader.getCurrentWebApplicationContext(),但返回值为空。

大家知道是怎么回事吗?
------解决思路----------------------
你有没有启动应用服务器?