I seem to be missing a crucial element in my spring boot application. I am attempting to follow the initial steps outlined in the Vue documentation to create the most basic Vue application possible. Here is what I currently have:
@Controller
public class TestController {
@GetMapping("/home")
public String index() {
return "home";
}
}
Within the Resource folder, I've created a Template folder where I've defined home.html and home.js as follows:
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
{{ message }}
</div>
However, when I try to access the _home_
route, all I see is
{{ message }}
It appears that the js
file may not be linked correctly. Any assistance would be greatly appreciated.