国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

Sprint.Net 筆記

2019-11-17 02:35:39
字體:
來源:轉載
供稿:網友
SPRint.Net 筆記

有生以來寫的第一份博客, 還真不會寫, 請高手們指導指導.

1.引入Spring.Core.dll 和Common.Logging.dll 兩個文

2. 在UI層的Web.conf 的 <ConfigSections>中加入sprint節點.

<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></configSections>

3.再<configuration>下加入

<configuration>  ...  ...  ...  <spring>    <context>      <resource uri="config://spring/objects" />    </context>    <objects xmlns="http://www.springframework.net">      <object id="UserInfoService" type="Icdce.UserLimit.BLL.UserInfoService,Icdce.UserLimit.BLL" singleton="false"></object>    </objects>  </spring></configuration>

4. 然后前臺即可調用中間的方法.

IapplicationContext ctx = ContextRegistry.GetContext();IBLL.IUserInfoService userInfo = ctx.GetObject("UserInfoService") as IBLL.IUserInfoService;

  


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 青铜峡市| 玉溪市| 全州县| 喜德县| 盐源县| 南木林县| 梧州市| 灵台县| 大厂| 临漳县| 沙湾县| 崇信县| 扬中市| 浑源县| 万源市| 黄石市| 交城县| 普宁市| 秦皇岛市| 喀喇沁旗| 明溪县| 丹棱县| 英超| 石楼县| 绥阳县| 崇礼县| 青岛市| 西乡县| 哈巴河县| 会理县| 钟祥市| 南漳县| 沛县| 桐柏县| 宜春市| 鄄城县| 鹿泉市| 汤阴县| 财经| 石城县| 贡觉县|