Spring Boot's test framework has an option to select a random port for a test run with 'server.port:0'. The documentation suggests grabbing the port as a Spring @Value , but I'm wanting to use it to set the baseUrl in my GebConfig.groovy. Is there a way to access the dynamic port number from within the ConfigSlurper?
Aucun commentaire:
Enregistrer un commentaire