• xiaoshengOST

    eclipse怎么运行啊

    xiaoshengOST发表于 2019/9/24 23:05:21
  • lizhezyj

    老师,您好
    我测试highlight_springmvc4项目,书上4.2.2项目,编译通过,在STS-BUNDLE环境中DEBUG调试,启动pivotal成功,访问浏览器http://localhost:8085/highlight_springmvc4/index控制台报错,
    logbak: 14:14:53.763 o.s.web.servlet.DispatcherServlet - DispatcherServlet with name ‘dispatcher’ processing GET request for [/highlight_springmvc4/index]
    logbak: 14:14:53.763 o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler method for path /index
    logbak: 14:14:53.764 o.s.w.s.m.m.a.RequestMappingHandlerMapping - Did not find handler method for [/index]
    logbak: 14:14:53.764 o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/highlight_springmvc4/index] in DispatcherServlet with name ‘dispatcher’
    logbak: 14:14:53.764 o.s.web.servlet.DispatcherServlet - Successfully completed request

    如何解决?

    lizhezyj发表于 2019/9/19 14:19:36
    • lizhezyj

      老师,我已经找到您书里面的问题,请解决
      @ComponentScan(“com.wisely.highlight_springmvc4”)应该修改为@ComponentScan(“highlight_springmvc4”),否则无法连接到URL地址,折腾了我一个下午。

      lizhezyj发表于 2019/9/20 17:48:03
  • lizhezyj

    从网页上下载代码,将里面的highlight_spring4项目,导入到spring-eclipse中,执行debug main.j**a后,报错
    错误: 找不到或无法加载主类 highlight_spring4.ch1.di.Main
    是什么原因

    lizhezyj发表于 2019/9/9 10:55:42
  • wpsps

    用idea导入总是报错,有项目的相关环境介绍吗

    wpsps发表于 2019/8/14 19:47:40
  • zouhong

    第61页 String[] value() default {}; 什么意思

    zouhong发表于 2019/8/12 23:29:56
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 14