Spring / Spring Boot
How do I add custom JS code with Spring Boot?
Create a folder called static under resources folder and put your static content in that folder. For your example the path to myStatic.js would be resources\static\js\myStatic.js.
You may refer to it in jsp as shown below.
More Related questions...