1

spring3.x を使用しています。アプリケーションに以下の構成ファイルがあります。

applicationContext.xml
spring-ws-servlet.xml

web.xml

   <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:config/applicationContext.xml</param-value>
    </context-param>


<servlet>
        <servlet-name>spring-ws</servlet-name>
        <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
            <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:config/spring-ws-servlet.xml</param-value>
        </init-param>

    </servlet>
    <servlet-mapping>
        <servlet-name>spring-ws</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

私の質問は、どの種類の豆を保持する必要があるか、applicationContext.xmlまたどの種類の豆を保持する必要があるspring-ws-servlet.xmlかということです。なぜ両方が必要なのですか?全部残してapplicationContext.xml削除しspring-ws-servlet.xmlましょうか?

両方ある場合、一方を別のものにインポートする必要がありますか? 私を助けてください。

ありがとう!

4

2 に答える 2