title: Failed to load resource: the server responded with a status of 404 (Not Found) Angular 7
body: <p>I have a folder LearningBoard and all my AngularJS content(index.html, js, css files) are inside that folder. I am using grunt.js to generate war file and deploy it on jboss server. </p>
  
  <p>After generating war file all my content is outside web-inf folder. 
  I am able to load <a href="http://localhost:38080/learningboard" rel="nofollow noreferrer">http://localhost:38080/learningboard</a> but I do not see any content loading. 
  In my index.html I have entry like <code>&lt;base href="/"&gt;</code>.</p>
  
  <p>On console I see</p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 404
    (Not Found) styles.js:1 Failed to load resource: the server responded
    with a status of 404 (Not Found)</p>
  </blockquote>
  
  <p>If I put all my content inside web-inf folder then I get 404 resource not found. 
  How to load js and css content when I hit <a href="http://localhost:38080/learningboard" rel="nofollow noreferrer">http://localhost:38080/learningboard</a> ?</p>
  
  <p>I am using <strong>Angular 7</strong>.</p>
  
  <p>Grunt JS code</p>
  
  <pre><code>module.exports = function ( grunt ) {
      grunt.loadNpmTasks( 'grunt-war' );
  
      var taskConfig = {
          war: {
              target: {
                  options: {
                      war_verbose: true,
                      war_dist_folder: 'warFile',           // Folder path seperator added at runtime. 
                      war_name: 'Test',            // .war will be appended if omitted 
                      webxml_welcome: 'index.html',
                      webxml_display_name: 'Test'
                  },
                  files: [
                      {
                          expand: true,
                          cwd: 'dist/learningboard',
                          src: ['**'],
                          dest: ''
                      }
                  ]
              }
          }
      };
  
      grunt.initConfig( taskConfig );
  };
  </code></pre>