问答详情
源自:5-2 cookie登录交互(下)

Start state is missing. Add at least one state to the flow 出现这个错误

spring-web.xml


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/context  
                        http://www.springframework.org/schema/context/spring-context.xsd
                        http://www.springframework.org/schema/mvc  
                        http://www.springframework.org/schema/mvc/spring-mvc.xsd">
     <!-- 配置springMVC -->    
     <!-- 1、开启springMVC注解模式 -->
     <mvc:annotation-driven/>
     <!-- 2、静态资源默认servlet处理 -->
     <mvc:default-servlet-handler />
     <!-- 3、配置jsp 显示ViewResolver -->
     <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property>     
        <property name="prefix" value="/WEB-INF/jsp/"></property>    
        <property name="suffix" value=".jsp"></property>
     </bean>
     
     <!-- 扫描web相关的bean -->
     <context:component-scan base-package="com.seckill.web"/>
</beans>

提问者:ranjiexu 2016-07-25 21:05

个回答

  • 忘我00
    2016-12-13 22:11:28

    错误代码贴出来

  • ranjiexu
    2016-07-29 00:38:29

    顶上去