프로젝트 ('myproject')는 Spring MVC 프레임 워크를 사용합니다. 기본 페이지의 web.xml은 다음과 configed, "index.action"입니다 :스프링 컨트롤러에 기본 페이지를 연결하는 방법은 무엇입니까?
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-*.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.action</welcome-file>
</welcome-file-list>
http://www.example.com/myproject/를 방문하지만, http://www.example.com/myproject/index.action를 방문하는 동안 잘 작동하는 동안 때 응답 (404)가 발견되지 않는 서버.
도움이 될 것입니다!
해결책을 찾았습니까? 나는 같은 상황에 직면하고있다. –