1.? 之前一個項目慧妄,前端更新svn到某個版本后顷牌,就一直報下面的錯誤——首頁怎么都不顯示:
Error: [$injector:modulerr] Failed to instantiate module webappApp due to:
[$injector:modulerr] Failed to instantiate module ui.bootstrap due to:
[$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.8/$injector/nomod?p0=ui.bootstrap
minErr/<@http://localhost:8080/monitor/client/bower_components/angular/angular.js:68:12
2. 曾經(jīng)嘗試過說服前端找找原因修復(fù)一下,始終未果塞淹。
3. 多年以后窟蓝,tomcat上直接運行war,一如初始看到上述錯誤饱普。于是上 https://stackoverflow.com/questions/26615918/error-injectornomod-module-ui-bootstrap-is-not-available-you-either-miss
看到可能的語句的提示 :
You have to include following after angular.min....
..//ui-bootstrap-custom-tpls-0.12.0.min.js
于是运挫,找到 E:\SysManage\FaddySoft\apache-tomcat-7.0.42\webapps\monitor\index.html
然后在 angular js的引用后面添加 ui-bootstrap-tpls-2.2.0.js 的引用。
4. 再次刷新首頁套耕,登錄界面居然出現(xiàn)了K痢!我的天那冯袍, 多年懸而未決的問題竟然得到答復(fù)了P偻凇!