1.? 之前一個(gè)項(xiàng)目,前端更新svn到某個(gè)版本后,就一直報(bào)下面的錯(cuò)誤——首頁怎么都不顯示:
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上直接運(yùn)行war,一如初始看到上述錯(cuò)誤。于是上 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)了!!我的天那, 多年懸而未決的問題竟然得到答復(fù)了!!