No services have been found解决方案

  今天在做web服务的时候遇到了一个问题,很是头疼,

No services have been found,就是它!!!

    我的解决方案是,在web.xml里面加上:

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:applicationContext.xml</param-value>
  </context-param>
 
  <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>


只怪当初太初心,没有配置spring,才导致的错误

原文地址:https://www.cnblogs.com/a1111/p/7459672.html