【IBatisNet & Spring.Net】ORM與IOC 簡單配置

1.修改WebConfig.cs配置文件spring

<configuration>
  <configSections>
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" />
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
    </sectionGroup>
  </configSections>
  <spring>
    <context>
      <resource uri="file://~/SpringDaoObjects.config" />
      <resource uri="config://spring/objects" />
    </context>
    <objects xmlns="http://www.springframework.net" />
  </spring>
<!-- 其它配置內容 -->
</configuration>
WebConfig.cs
相關文章
相關標籤/搜索