How do you share Spring beans between different Spring contexts?

前端 未结 2 1992
谎友^
谎友^ 2021-01-20 01:01

We have an application which uses Spring BlazeDS integration. So far we have just been using Spring and Flex, and it is working fine. We now have a requirement to add some S

2条回答
  •  心在旅途
    2021-01-20 02:01

    Add this to your web.xml:

    
        contextConfigLocation
        classpath:spring/YOUR_APP_CONTEXT.xml
    
    

    Both beans defined via scanning and direct definitions will be available for your BlazeDS and SpringMVC endpoints.

提交回复
热议问题