第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Struts2 出現(xiàn)的小問題?。。。。?/h1>

Struts2 出現(xiàn)的小問題?。。。?!

木粉null 2017-02-02 12:37:04
在使用struts2上傳時(shí),出現(xiàn)了404錯誤,無論是訪問index.jsp還是jsp目錄下的01.jspstruts.xml:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC?? ?"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"?? ?"http://struts.apache.org/dtds/struts-2.3.dtd"><struts>??? <constant name="struts.enable.DynamicMethodInvocation" value="false" />??? <constant name="struts.devMode" value="true" />??? <package name="default" namespace="/" extends="struts-default">?? ??? ??? ?<action name="upload" class="com.imooc.action.FileUploadAction">?? ??? ??? ??? ?<result>index.jsp</result>?? ??? ??? ??? ?<result name="input">error.jsp</result>?? ??? ??? ??? ?<!-- 配置攔截器信息來限制上傳文件的大小和類型 -->?? ??? ??? ??? ?<interceptor-ref name="fileUpload">?? ??? ??? ??? ?<param name="allowedTypes">image/bmp,image/x-png,image/gif,image/jpg</param>?? ??? ??? ??? ?<param name="maximumSize">2097152</param>?? ??? ??? ??? ?</interceptor-ref>?? ??? ??? ??? ?<interceptor-ref name="defaultStack"></interceptor-ref>?? ??? ??? ?</action>??? </package>web.xml:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">? <display-name>upload_download2</display-name>? <!-- struts2配置 -->??? <filter>??????? <filter-name>struts2</filter-name>??????? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>??? </filter>??? <filter-mapping>??????? <filter-name>struts2</filter-name>??????? <url-pattern>/*</url-pattern>??? </filter-mapping></web-app>
查看完整描述

1 回答

?
多情劍客a無情劍

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個贊

訪問不了index.jsp是因?yàn)槟愕膚eb.xml文件配置有問題
查看完整回答
反對 回復(fù) 2017-02-04
  • 木粉null
    木粉null
    web.xml應(yīng)該沒問題,我換了下jar包,就能進(jìn)了,和jar包版本有關(guān)嗎?
  • 1 回答
  • 0 關(guān)注
  • 1170 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號