[/運動漫畫/首頁/]我有問題frameowrk.org.springframework.web.servlet.DispatcherServlet保持獲得狀態404警告:spring3未找到HTTP請求的URI與映射的DispatcherServlet
文件名是WelcomeController.java
package com.rethink.controller;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping("/welcome")
public class WelcomeController {
@RequestMapping(method = RequestMethod.GET)
public String displayMessage(Map<String, String> map){
System.out.println("In");
map.put("loginmessage","Please Login with Your Details");
return "index";
}
}
這是我的web.xml和運動漫畫-servlet.xml中
Click here for web.xml and motion-comics-servlet.xml screen shot
我已經把我的觀點在Web頁/ WEB-INF/JSP/index.jsp的
不管我怎麼努力,我只是不能讓它工作....
我的幫助和諮詢會不勝感激....
在此先感謝
在servlet映射的web.xml中的URL模式中嘗試/ **(slashStarStar) –
@lamba對不起,這不起作用 – Ahmed
@Ahmed你想說你已經保持你的index.jsp文件的位置 - WebContent/Web-INF/jsp/index.jsp? – asg