Here is my web.xml file
<display-name>PhysicalInventory</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>rest</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>rest</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
app.js
'use strict';
angular
.module('inventoryApp', [
//Third-Party modules
'ui.router',
'ui.bootstrap',
'ui.grid',
'ui.grid.pagination'
])
.config(function ($urlRouterProvider,$locationProvider, $stateProvider) {
alert("ii");
$urlRouterProvider.otherwise('/dashboard');
$stateProvider
.state('dashboard', {
url: '/dashboard',
templateUrl: 'views/dashbord.jsp',
controller: 'DashboardCtrl'
});
$locationProvider.html5Mode(true);
}).run(function ($rootScope, $state){
$rootScope.$state = $state;
});
When I am running my aap its working finr for first time. but While reloading its showing HTTP Status 404 - /PhysicalInventory/dashboard.
Kindly anyone help me out......
Thank you in advance.