MyStony 2015-06-17 06:01 采纳率: 0%
浏览 4035
已结题

springmvc+mybatis 页面404,控制台无异常输出

DEBUG [http-8080-10] - DispatcherServlet with name 'springMvc' processing GET request for [/XYKJOA/getALLWorkPlan.do]
DEBUG [http-8080-10] - Looking up handler method for path /getALLWorkPlan.do
DEBUG [http-8080-10] - Returning handler method [public java.lang.String com.xykj.controller.WorkPlanController.getALLWorkPlan(javax.servlet.http.HttpServletRequest)]
DEBUG [http-8080-10] - Returning cached instance of singleton bean 'workPlanController'
DEBUG [http-8080-10] - Last-Modified value for [/XYKJOA/getALLWorkPlan.do] is: -1
DEBUG [http-8080-10] - Creating a new SqlSession
DEBUG [http-8080-10] - Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@707cdc58]
DEBUG [http-8080-10] - Fetching JDBC Connection from DataSource
DEBUG [http-8080-10] - Registering transaction synchronization for JDBC Connection
DEBUG [http-8080-10] - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@24d2fb67] will be managed by Spring
DEBUG [http-8080-10] - ooo Using Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@24d2fb67]
DEBUG [http-8080-10] - ==> Preparing: select * from XY_WorkPlan
DEBUG [http-8080-10] - ==> Parameters:
DEBUG [http-8080-10] - Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@707cdc58]
DEBUG [http-8080-10] - Should roll back transaction but cannot - no transaction available
DEBUG [http-8080-10] - Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@707cdc58]
DEBUG [http-8080-10] - Returning JDBC Connection to DataSource
DEBUG [http-8080-10] - Rendering view [org.springframework.web.servlet.view.JstlView: name 'work/workplan_list'; URL [/work/workplan_list.jsp]] in DispatcherServlet with name 'springMvc'
DEBUG [http-8080-10] - Forwarding to resource [/work/workplan_list.jsp] in InternalResourceView 'work/workplan_list'
DEBUG [http-8080-10] - Successfully completed request

  • 写回答

6条回答 默认 最新

  • MyStony 2015-06-17 06:04
    关注

    spring-mvc.xml

    <?xml version="1.0" encoding="UTF-8"?>
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

    mvc:annotation-driven/
    <!-- 自动扫描controller包下的所有类,使其认为spring mvc的控制器 -->


    /context:component-scan

    <bean id="paramMethodResolver" class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver">
        <property name="paramName" value="action" />    
    </bean>
    <!-- 对模型视图名称的解析,即在模型视图名称添加前后缀 -->
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" 
    p:prefix="/" p:suffix=".jsp" />
    
    <mvc:annotation-driven></mvc:annotation-driven>
    <!-- 上传配置multipart -->
    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <!-- 设置文件大小5M -->
        <property name="maxUploadSize" value="5000000"></property>
    </bean>
    
    <!-- <mvc:resources location="work/images" mapping="images/**"/>
    <mvc:resources location="work/js" mapping="js/**"/>
    <mvc:resources location="work/css" mapping="css/**"/> -->
    

    
    
    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置