其他分享
首页 > 其他分享> > class path resource [applicationContext.xml] filter/*-filter.xmlcannot be opened because it doe

class path resource [applicationContext.xml] filter/*-filter.xmlcannot be opened because it doe

作者:互联网

class path resource [applicationContext.xml] cannot be opened because it does not exist的解决方案:

 

1.你可以把web.xml文件放java resources下,或src里。

 

2.你也可以在web.xml在classpath后加个*如下:

<context-param>
<param-name>contextConfigLocation</param-name>
      <param-value>classpath*:appServlet-context.xml,classpath*:filter/*-filter.xml</param-value>
</context-param>

 

https://blog.csdn.net/weixin_39084761/article/details/78199737

 

 

标签:xml,applicationContext,because,opened,classpath,filter
来源: https://blog.csdn.net/lhq186/article/details/88120245