<i id='jKXRr'><tr id='jKXRr'><dt id='jKXRr'><q id='jKXRr'><span id='jKXRr'><b id='jKXRr'><form id='jKXRr'><ins id='jKXRr'></ins><ul id='jKXRr'></ul><sub id='jKXRr'></sub></form><legend id='jKXRr'></legend><bdo id='jKXRr'><pre id='jKXRr'><center id='jKXRr'></center></pre></bdo></b><th id='jKXRr'></th></span></q></dt></tr></i><div id='jKXRr'><tfoot id='jKXRr'></tfoot><dl id='jKXRr'><fieldset id='jKXRr'></fieldset></dl></div>

    <bdo id='jKXRr'></bdo><ul id='jKXRr'></ul>

<legend id='jKXRr'><style id='jKXRr'><dir id='jKXRr'><q id='jKXRr'></q></dir></style></legend>

        <tfoot id='jKXRr'></tfoot>
      1. <small id='jKXRr'></small><noframes id='jKXRr'>

      2. 我如何在eclipse中配置applicationcontext.xml

        时间:2023-10-15
        <i id='e9Xrg'><tr id='e9Xrg'><dt id='e9Xrg'><q id='e9Xrg'><span id='e9Xrg'><b id='e9Xrg'><form id='e9Xrg'><ins id='e9Xrg'></ins><ul id='e9Xrg'></ul><sub id='e9Xrg'></sub></form><legend id='e9Xrg'></legend><bdo id='e9Xrg'><pre id='e9Xrg'><center id='e9Xrg'></center></pre></bdo></b><th id='e9Xrg'></th></span></q></dt></tr></i><div id='e9Xrg'><tfoot id='e9Xrg'></tfoot><dl id='e9Xrg'><fieldset id='e9Xrg'></fieldset></dl></div>
        <legend id='e9Xrg'><style id='e9Xrg'><dir id='e9Xrg'><q id='e9Xrg'></q></dir></style></legend>

          <tbody id='e9Xrg'></tbody>
        1. <small id='e9Xrg'></small><noframes id='e9Xrg'>

              <bdo id='e9Xrg'></bdo><ul id='e9Xrg'></ul>
                  <tfoot id='e9Xrg'></tfoot>

                  本文介绍了我如何在eclipse中配置applicationcontext.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当我将 struts.xml 放入 web-inf 时,它显示错误......当我放入 src 文件夹时,它工作正常.(在 web-inf 中是 applicationcontext.xml)

                  when i put struts.xml in web-inf it is showing error......when i put in src folder it is working fine.(being applicationcontext.xml in web-inf)

                  (在(src 文件夹或 src/resources)中的 struts.xml)当我将 applicationcontext.xml 放入 src 文件夹时............它是说无法在 web-inf 中找到 applicationcontext.xml文件夹............它无法执行.

                  (being struts.xml in (src folder or src/resources)) when i put applicationcontext.xml in src folder.........it is saying that unable to find applicationcontext.xml in web-inf folder...........it is not able to execute.

                  我如何配置以便 eclipse 可以找到 struts.xml 或 applicationcontext.xml 的路径,以便无论我放在哪里都应该检测到它.

                  how do i configure so that eclipse can find the path of struts.xml or applicationcontext.xml so that wherever i put it should detect it.

                  web.xml中的代码如下.

                  the code in web.xml is as follows.

                  <filter>
                          <filter-name>struts2</filter-name>
                          <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
                      </filter>
                      <listener>
                          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
                      </listener>
                      <filter-mapping>
                          <filter-name>struts2</filter-name>
                          <url-pattern>/*</url-pattern>
                      </filter-mapping>
                      <welcome-file-list>
                          <welcome-file>index.jsp</welcome-file>
                      </welcome-file-list>
                  </web-app>
                  

                  谢谢大家.

                  推荐答案

                  在 web.xml 中配置 context-param 如下:

                  Configure context-param in web.xml like below:

                  <context-param>
                      <param-name>contextConfigLocation</param-name>
                      <param-value> /WEB-INF/application-context.xml</param-value>
                    </context-param>
                  

                  并将你的 application-context.xml 放入 WEB-INF 文件夹中.

                  And put your application-context.xml in WEB-INF folder.

                  这篇关于我如何在eclipse中配置applicationcontext.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:“选择"未从 List&lt;String&gt; 填充在支柱 下一篇:ActionError 未显示

                  相关文章

                  1. <tfoot id='pqxtq'></tfoot>

                    <small id='pqxtq'></small><noframes id='pqxtq'>

                  2. <i id='pqxtq'><tr id='pqxtq'><dt id='pqxtq'><q id='pqxtq'><span id='pqxtq'><b id='pqxtq'><form id='pqxtq'><ins id='pqxtq'></ins><ul id='pqxtq'></ul><sub id='pqxtq'></sub></form><legend id='pqxtq'></legend><bdo id='pqxtq'><pre id='pqxtq'><center id='pqxtq'></center></pre></bdo></b><th id='pqxtq'></th></span></q></dt></tr></i><div id='pqxtq'><tfoot id='pqxtq'></tfoot><dl id='pqxtq'><fieldset id='pqxtq'></fieldset></dl></div>
                    1. <legend id='pqxtq'><style id='pqxtq'><dir id='pqxtq'><q id='pqxtq'></q></dir></style></legend>
                        <bdo id='pqxtq'></bdo><ul id='pqxtq'></ul>