我点击这个进行跳转的时候,第一次点击可以跳转,但是再点击一次的时候路径就不对了,
package com.tds.amct2.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/page/")
public class PageForwardController {
@RequestMapping("/amct")
public ModelAndView forwardAmct() {
return new ModelAndView("amct");
}
@RequestMapping("/dns")
public ModelAndView forwardDns() {
return new ModelAndView("/dns");
}
@RequestMapping("/https")
public ModelAndView forwardHttps() {
return new ModelAndView("/https");
}
@RequestMapping("/tcpport")
public ModelAndView forwardTcpport() {
return new ModelAndView("/tcpport");
}
@RequestMapping("/vrfping")
public ModelAndView forwardVrfping() {
return new ModelAndView("/vrfping");
}
}