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

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

No mapping found for dependency

No mapping found for dependency

慕粉3613271 2016-10-19 23:56:28
錯(cuò)誤信息:java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException,No mapping found for dependency [type=com.opensymphony.xwork2.conversion.ConversionFileProcessor, name='default'] in public void com.opensymphony.xwork2.conversion.impl.XWorkConverter.setConversionFileProcessor(com.opensymphony.xwork2.conversion.ConversionFileProcessor).其中struts.xml就放在src目錄下web.xml里的內(nèi)容如下<?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>test</display-name>? <filter>??? <filter-name>struts2</filter-name>??? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>??? <init-param>? ?? ??? ?<param-name>config</param-name>? ?? ??? ?<param-value>struts-default.xml,struts-plugin.xml,struts.xml</param-value>? ?? ?</init-param>? </filter>? <filter-mapping>??? <filter-name>struts2</filter-name>??? <url-pattern>/*</url-pattern>? </filter-mapping>? <listener>??? <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>? </listener>? <context-param>??? <param-name>contextConfigLocation</param-name>??? <param-value>classpath:spring.xml</param-value>? </context-param></web-app>其中<init-param></init-param>標(biāo)簽及里面的內(nèi)容去掉也是報(bào)同樣的錯(cuò)誤。
查看完整描述

1 回答

?
大咪

TA貢獻(xiàn)785條經(jīng)驗(yàn) 獲得超332個(gè)贊

你struts.xml里配置少default這個(gè)節(jié)點(diǎn),加上這個(gè)試試

<include?file="struts-default.xml"/>

然后web.xml里不用改動(dòng)

查看完整回答
反對(duì) 回復(fù) 2016-10-20
  • 慕粉3613271
    慕粉3613271
    寫了那句話,謝謝你幫我解決問題,我找到問題了,是在網(wǎng)上下載的那個(gè)struts-core.jar有問題,不知道是版本的問題還是這個(gè)包自身的問題,他的struts-default里面少寫了FileManager的兩個(gè)bean,所以才會(huì)報(bào)那個(gè)錯(cuò)誤。
  • 大咪
    大咪
    哦哦好吧……
  • 1 回答
  • 0 關(guān)注
  • 2504 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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