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

ContextLoader.getCurrentWebApplicationContext() 返回值替空

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

大家知道是怎么回事吗?
Spring

------解决方案--------------------
你有没有启动应用服务器?