0

I just study vue.js and my problem is: if I open index.html then index.js open too, but if I start srping boot, my index.html works correct and doesn't see index.js.
path

<body>
    <div id="armors"></div>
    <script type="text/javascript" src="js/index.js"></script>
</body>
3
  • Every time you open the index.html file with your browser, a new window opens in your browser which shows the content of your index.js file ? Commented May 31, 2019 at 11:02
  • if i open only index.html file, without spring boot, vue components inject from index.js to index.html. it's ok. but with deploy application in spring boot it doesn't work. i get an error like GET localhost:8080/js/index.js net::ERR_ABORTED 404. it's somthing about path problems, but i move index.js in different place and it doesn't work Commented May 31, 2019 at 11:23
  • I haven't really worked on spring, but I believe static assets(like js files) should be moved to a static directory. Here is a similar question Commented May 31, 2019 at 11:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.