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

1 Answer

0 votes
by (5k points)
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>

Share:- Whatsapp Facebook Facebook

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