We can add custom JS code in Spring boot using following steps :-
1.Create a folder called static under resources folder. You can put your static content in that folder.
For your example the path to abc.js would be resources static js abc.js
2. You can refer to it in jsp using