Configure Spring Boot with two ports
As is has been mentioned before, server.port and management.port along with management.context-path properties could be set to make the embedded container to listen on different ports (management-related properties to access Actuator endpoints). To listen on ports other than server.port and management.port: @Configuration public class EmbeddedTomcatConfiguration { @Value(“${server.additionalPorts}”) private String additionalPorts; @Bean public EmbeddedServletContainerFactory servletContainer() { … Read more