weibocom / motan

A cross-language remote procedure call(RPC) framework for rapid development of high performance distributed services.
Other
5.89k stars 1.78k forks source link

SSH 项目配置问题? #43

Closed thisxulz closed 8 years ago

thisxulz commented 8 years ago

您好, 想在现有的SSH项目中加入motan,对外提供RPC接口 如何在SSH项目中配置呢? web.xml怎么配置?

qdaxb commented 8 years ago

web.xml中可以按照加载spring的xml的方式加载motan配置。

web.xml:

.....
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:spring/motan_server.xml
        </param-value>
    </context-param>

    <listener>
        <listener-class>
            org.springframework.web.context.ContextLoaderListener
        </listener-class>
    </listener>
......