Spring Boot with Thymeleaf and AngularJS ui-router
<p>I am trying to create a simple Spring boot web application. i am using Thymeleaf and AngularJs for my front end.</p>

<p>everything works fine until I try to add ui.router in my application.</p>

<p><a href="https://i.stack.imgur.com/Ot6Cd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ot6Cd.png" alt="below is my project structure"></a> </p>

<p>below is my app.config:</p>

<pre><code>.config(function($stateProvider, $urlRouterProvider) {
             $urlRouterProvider.otherwise('/home');

                $stateProvider        

                    .state('home', {
                        url: '/home',
                        template: index1.html
                    })
})
</code></pre>

<p>when i run my application, the partil "index1.html" is not loaded in ui-view.</p>

<p>i am getting error as "<a href="http://localhost:8080/index.html" rel="nofollow noreferrer">http://localhost:8080/index.html</a> is bad request"</p>

<p>from my understanding the templateUrl is worng. please guide me in getting this right.</p>