Header

  1. View current page

    glory님의 노트

Profile_img_60x60_01
0

my_spring_app-servlet.xml 에서 import 문 사용하기

In my-spring-app-servlet.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
            ">
        <import resource="someContext.xml"/> 
    </beans>

 

In someContext.xml

※ 주의사항 : 아래의 xmls, xmlns:xsi,  xsi:schemaLocation 등 모든 정보를 포함하고 있어야 에러가 안난다.

  1. <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:util="http://www.springframework.org/schema/util"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
            http://www.springframework.org/schema/util
            http://www.springframework.org/schema/util/spring-util-2.5.xsd
            ">

        <util:list id="solrArticleServers00">
            <util:list>
                <value>http://121.125.10.11:8080/article
                </value>
                <value>http://121.125.10.11:8070/article
                </value>
            </util:list>
        </util:list>

        <util:list id="solrArticleServers01">
            <util:list>
                <value>http://121.125.10.12:8080/article
                </value>
                <value>http://121.125.10.12:8070/article
                </value>
            </util:list>
        </util:list>

        <util:map id="articlePartitionMap" key-type="java.lang.Integer">
            <entry key="0" value-ref="solrArticleServers00" />
            <entry key="1" value-ref="solrArticleServers01" />
        </util:map>
    </beans>

History

Last edited on 04/10/2009 11:42 by glory

Comments (0)

You must log in to leave a comment. Please sign in.