If I am trying to use a script in my Spring Boot web application, it only allows me to use is through text/javascript. If I create a .js file, and try to reference the document, it gives an error saying the document is not defined.
How do I get this to stop?
It works fine if I'm creating the files outside of the spring tool suite
IDE, but I put the files in the resources, but it will not let met reference the html documents from the js files, and gives an error.