Spring Loading java and web content on different ports in one application

Is it possible to run static content and java code on different ports?

I have a spring download project where my Java code is on src/main/javaand web content is on src/main/resources/static.

Is it possible to run static content on a port, for example, 8080 and java (rest controller) on 8081?

I do not want to create a separate project for the user interface.

+4
source share

Source: https://habr.com/ru/post/1652798/


All Articles