• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.


0 votes
How to add custom JS code in Spring Boot?
in Spring Boot by

1 Answer

0 votes
To add custom JS code in our Spring boot application follow the following steps:-

Create a folder called static under resources folder. You can put your static content in that folder.

For example the path to myapp.js would be resources\static\js\myapp.js

You can refer it your code with:-

<script src="/js/myapp.js"></script>
by (4.4k points)