为了账号安全,请及时绑定邮箱和手机立即绑定

我做hellocontroller的时候是成功了,但是做第一个页面的时候就一直404了?下面贴出日志

1600 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/courses/view]

1600 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/courses/view]

1602 [qtp1743310468-14] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping  - Looking up handler method for path /courses/view

1602 [qtp1743310468-14] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping  - Looking up handler method for path /courses/view

1602 [qtp1743310468-14] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping  - Did not find handler method for [/courses/view]

1602 [qtp1743310468-14] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping  - Did not find handler method for [/courses/view]

1603 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - Matching patterns for request [/courses/view] are [/**]

1603 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - Matching patterns for request [/courses/view] are [/**]

1603 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - URI Template variables for request [/courses/view] are {}

1603 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - URI Template variables for request [/courses/view] are {}

1604 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - Mapping [/courses/view] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler@603d6637] and 1 interceptor

1604 [qtp1743310468-14] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping  - Mapping [/courses/view] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler@603d6637] and 1 interceptor

1604 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Last-Modified value for [/courses/view] is: -1

1604 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Last-Modified value for [/courses/view] is: -1

1609 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling

1609 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling

1609 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Successfully completed request

1609 [qtp1743310468-14] DEBUG org.springframework.web.servlet.DispatcherServlet  - Successfully completed request


正在回答

3 回答

@AutoWired有没有配好?


0 回复 有任何疑惑可以回复我~
#1

qq_昨夜星辰_6

Autowired这里总是报错,提示 expected at least 1 bean which qualifies as autowire candidate. controller没有调用ompl,model里面有@Service注解
2017-06-21 回复 有任何疑惑可以回复我~

需要贴你的源码看下啊

0 回复 有任何疑惑可以回复我~

Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling

这个错误提示,好像是说你的返回没有指定到已知的页面,你可以查看下springMVC的配置是否正确,然后,controller的方法返回的页面名称是否存在

1 回复 有任何疑惑可以回复我~
#1

慕UI8279037 提问者

难道是那个前缀和后缀的配置错误了?
2016-07-11 回复 有任何疑惑可以回复我~
#2

慕UI8279037 提问者

谢谢啦
2016-07-11 回复 有任何疑惑可以回复我~
#3

时而abc 回复 慕UI8279037 提问者

楼主我和你一样,怎么解决的啊
2017-07-20 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我做hellocontroller的时候是成功了,但是做第一个页面的时候就一直404了?下面贴出日志

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号