• Dave Syer's avatar
    Use server.port=0 for scanning · 8efa2fc5
    Dave Syer authored
    This leverages existing capabilities of teh JDK and the OS
    to grab a port at random and not have it stolen by another
    process. It's very hard to avoid that race condition in
    pure Java code, so why bother?
    
    User can set port<0 to disable autoStart of connectors (e.g.
    to start a web application context but not have it listen on
    any port). In that case the actual socket port will be set to
    0 (and therefore if it ever starts up the local port will
    be random).
    8efa2fc5
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-javadoc Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...