程序運(yùn)行后視圖沒有獲取到圖片和課程信息
程序運(yùn)行沒有獲取到圖片和課程信息,如圖所示:
我截取的認(rèn)為重要的控制臺(tái)打印信息如下:
22988 [qtp1095203437-15] WARN ?org.springframework.web.servlet.PageNotFound ?- No mapping found for HTTP request with URI [/$%7Bcourse.imgPath%7D] in DispatcherServlet with name 'mvc-dispatcher'
22988 [qtp1095203437-15] WARN ?org.springframework.web.servlet.PageNotFound ?- No mapping found for HTTP request with URI [/$%7Bcourse.imgPath%7D] in DispatcherServlet with name 'mvc-dispatcher'
380997 [qtp1095203437-17] DEBUG org.springframework.web.servlet.DispatcherServlet ?- Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling
380997 [qtp1095203437-17] DEBUG org.springframework.web.servlet.DispatcherServlet ?- Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling
這是什么問題?
2017-03-10
以上問題已經(jīng)解決,是在web.xml文件中,web-app標(biāo)簽后面忘了加如下配置:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
? ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
? ?xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
? ???
2017-03-09
json