OA.WEB/bin/Config/controllers.xml

(完整代码) 2KB

<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
  <!--3..-->
  <object type="OA.WEB.Controllers.UserInfoController, OA.WEB" singleton="false" >
    <property name="userInfoService" ref="userInfoService" />
    <property name="roleInfoService" ref="roleInfoService" />
    <property name="actionInfoService" ref="actionInfoService" />
    <property name="r_UserInfo_ActionInfoService" ref="r_UserInfo_ActionInfoService" />
  </object>
  <!--1..(注意配置,一处配置错误,运行将失败)-->
    <object type="OA.WEB.Controllers.LoginController, OA.WEB" singleton="false" >
    <property name="userInfoService" ref="userInfoService" />
  </object>
  <object type="OA.WEB.Controllers.RoleInfoController, OA.WEB" singleton="false" >
    <property name="roleInfoService" ref="roleInfoService" />
  </object>
  <object type="OA.WEB.Controllers.ActionInfoController, OA.WEB" singleton="false" >
    <property name="actionInfoService" ref="actionInfoService" />
    <property name="roleInfoService" ref="roleInfoService" />
  </object>

  <object type="OA.WEB.Controllers.HomeController, OA.WEB" singleton="false" >
    <property name="userInfoService" ref="userInfoService" />
  </object>

  <!--2..-->
  <object name="userInfoService" type="OA.BLL.UserInfoService, OA.BLL" singleton="false" ></object>
  <object name="roleInfoService" type="OA.BLL.RoleInfoService, OA.BLL" singleton="false" ></object>
  <object name="actionInfoService" type="OA.BLL.ActionInfoService, OA.BLL" singleton="false" ></object>
  <object name="r_UserInfo_ActionInfoService" type="OA.BLL.R_UserInfo_ActionInfoService, OA.BLL" singleton="false" ></object>
  
  <!--intentionally do NOT register the AccountController or the ValuesController with the container; demonstrates that the underlying
  default controller factory will properly (attempt to!) resolve all controllers not registered with Spring.NET
  using its default controller resolution behavoir-->
  <!--<object type="Spring.Mvc4QuickStart.Controllers.AccountController, Spring.Mvc4QuickStart" singleton="false" />-->
  <!--<object type="Spring.Mvc4QuickStart.Controllers.ValuesController, Spring.Mvc4QuickStart" singleton="false" />-->
</objects>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。