I'm using Spring Boot to create a rest server and everything is going fine. But, now I want to create a second http listener in another port to handle static content such as Html, css, js and etc. I've been reading the documentation but I didn't get it. How can I do it?
Asked
Active
Viewed 151 times
1 Answers
1
Static contents can be easily served if you place it static folder in resources. https://dzone.com/articles/spring-boot-integrating-static-content
Is this what you are looking for?

Anand Varkey Philips
- 1,811
- 26
- 41
-
Almost. My pages will be located in a external O.S folder and I already use the project as a rest server. I want to create a new http port listener in the same project to handle page requests. – josev.junior Mar 04 '20 at 18:01
-
Can you update the question and elaborate where exactly files are and if it can be moved to resources folder etc? – Anand Varkey Philips Mar 04 '20 at 19:03