Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何在jsp中使用ng视图?_Angularjs_Jsp_Ng View - Fatal编程技术网

Angularjs 如何在jsp中使用ng视图?

Angularjs 如何在jsp中使用ng视图?,angularjs,jsp,ng-view,Angularjs,Jsp,Ng View,我的情况: MainController正确地为Index.jsp提供服务 jsp正确连接到main.js main.js不会将“inner/home.html”注入ng视图 为什么“inner/home.html”没有被注入? 控制器: package com.treeweb.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation

我的情况:

  • MainController正确地为Index.jsp提供服务
  • jsp正确连接到main.js
  • main.js不会将“inner/home.html”注入ng视图
  • 为什么“inner/home.html”没有被注入?

    控制器:

    package com.treeweb.controller;
    
    import org.springframework.stereotype.Controller;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;
    
    /**
     * Created by bluecastle on 8-12-16.
     */
    @Controller
    @RequestMapping("/")
    
    public class MainController {
    
        @RequestMapping(method = RequestMethod.GET)
        public String getIndexPage() {
            return "Index";
        }
    }
    
    Index.jsp:

    
    特雷韦布
    

    浏览器控制台中有错误吗?没有错误。未注入内部/home.html。浏览器控制台中有错误吗?没有错误。inner/home.html只是没有被注入。