title: Issue in Accessing Angular app through Spring app
body: <p>I was trying to make my front end of a spring mvc application using angular. I am assuming that anything in webapps folder is accessible through browser. This way I added angular part in a folder to webapps in my last project and it worked fine. This time when I created a folder under webapps and built my angular app there. But I can't get access to it in browser. My spring application is working fine. </p>
  
  <p>My spring configuration file contains:</p>
  
  <pre><code>    &lt;bean
    class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix"&gt;
          &lt;value&gt;/WEB-INF/pages/&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="suffix"&gt;
          &lt;value&gt;.jsp&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Also,</p>
  
  <pre><code>     &lt;bean id="urlMapping"
      class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;
      &lt;property name="urlMap"&gt;
          &lt;map&gt;
  
  
              &lt;entry key="/dpc/*.d"&gt;
                  &lt;ref bean="dac2Controller" /&gt;
              &lt;/entry&gt;
  
              &lt;entry key="/products/*.f"&gt;
                  &lt;ref bean="productController" /&gt;
              &lt;/entry&gt;
  
  
  
          &lt;/map&gt;
  
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>The code in controller is :</p>
  
  <pre><code>@RequestMapping("/products/p.f")
  public String list(Model model) {
  model.addAttribute("products", productRepository.getAllProducts());
  return "products";
  }
  </code></pre>
  
  <p>when I use the URL:</p>
  
  <pre><code>  http://localhost:8080/dpc2-kk-web-search/products/p.f
  </code></pre>
  
  <p>It works fine.</p>
  
  <p>But when I add angular code under webapps (folder dpc2), and in script.jsp:</p>
  
  <pre><code>app.config(function($routeProvider) {
  $routeProvider
  
  
  .when('/searchProducts', {
      templateUrl : 'ProductsSearch.jsp',
      controller : 'SearchController'
  })
  </code></pre>
  
  <p>When I tried to access through URL:</p>
  
  <pre><code>http://localhost:8080/dpc2-kk-web-search/dpc2/#/searchProducts
  </code></pre>
  
  <p>I am not getting the corresponding page. What configurations needs to put in web.xml to get access to folders and files in webapps through browser.</p>