I have java application (without Spring or Spring Boot) where server starts by invoking this method:
public void startServer() { com.sun.net.httpserver.H