springmvc can't find controller

Check whether the path of springmvc.xml is referenced correctly. Detection method: After the system starts, search the console to see if there is information about loading springmvc.xml. If not, the loading fails.
<servlet> 
     <servlet-name>dispatch</servlet-name> 
     <servlet -class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
     <init-param> 
      <param-name>contextConfigLocation</param-name> 
      <param-value>classpath*:conf/springmvc.xml</ param-value> 
     </init-param> 
     <load-on-startup>1</load-on-startup> 
    </servlet> 
    <servlet-mapping> 
     <servlet-name>dispatch</servlet-name> 
     <url- pattern>/</url-pattern> 
    </servlet-mapping>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326560586&siteId=291194637