Share:- Whatsapp Facebook Facebook

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

How to add custom JS code in Spring Boot?

0 votes
13 views
How to add custom JS code in Spring Boot?
asked Feb 8 in Spring Boot by Manish Prakash

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>
answered Feb 13 by ranju_12 (3,520 points)
...