How to config spring objects in app.config

来源:互联网 发布:游戏公司防止源码外泄 编辑:程序博客网 时间:2024/05/18 02:07

1. Add the following section into <configSections>

    <sectionGroup name="spring">      <section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core" />      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />    </sectionGroup>



2.  Add the following sections

<spring>    <context>      <resource uri="config://spring/objects"/>    </context>    <objects xmlns="http://www.springframework.net"><object id="XXX" type="XXX">...</object>    </objects></spring>


 

原创粉丝点击