天天看點

'UserInfoBLL' node cannot be resolved for the specified context [MVC展示資料.Controllers.LoginController...

我們在配置Spring.Net時,往往會提示找不到,然而看了看都對着呢?那麼問題出在了哪?

問題呈現:

'UserInfoBLL' node cannot be resolved for the specified context [MVC展示資料.Controllers.LoginController...
'UserInfoBLL' node cannot be resolved for the specified context [MVC展示資料.Controllers.LoginController...

進行如下修改,将名字随便取個,不為BLL方法名字即可,我這裡添加了一個1,注意這裡改了,控制器裡面别忘了改

'UserInfoBLL' node cannot be resolved for the specified context [MVC展示資料.Controllers.LoginController...

這時再運作就好了

總結:注入時,起的名字不要和BLL層方法名相同,相同就提示找不到

轉載于:https://www.cnblogs.com/shuai7boy/p/5309655.html