无论我怎么陪web.xml的拦截。/或者/uc/*我的静态资源都被拦截了。
yinhex
/uc/*
配置为:
< mvc:resources mapping="/javascripts/**"location="/javascripts/"/>
访问路径为: http://localhost:8080/yinhex/index/javascripts/jquery.bgiframe.js
index为controller的注解.为什么还是被拦截了呢???导致静态资源不可用
@Controller
@RequestMapping("/index")
public class IndexController{
@Resource(name="userService")
private UserService userService;
@RequestMapping(value = "index", method = { RequestMethod.GET, RequestMethod.POST })
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ModelAndView mav = new ModelAndView();
System.out.println("---======11111我进来啦TestController");
User user = userService.login("liujiebinhe@126.com", "liuxuejin");
System.out.println("==============="+user.getUserName());
mav.addObject("test", "hello world!");
mav.setViewName("main");
System.out.println("---======11111我进来啦TestController");
return mav;
}
然后访问:
http://localhost:8080/yinhex/uc/index/index
的时候
}
http://localhost:8080/yinhex/uc/index/javascripts/jquery.bgiframe.js
静态资源就无法获得!求大神解释