WebServerPortFileWriter
An ApplicationListener that saves embedded server port and management port into file. This application listener will be triggered whenever the server starts, and the file name can be overridden at runtime with a System property or environment variable named "PORTFILE" or "portfile".
Author
David Liu
Phillip Webb
Andy Wilkinson
Since
2.0.0
Constructors
Link copied to clipboard
constructor()
Create a new WebServerPortFileWriter instance using the filename 'application.port'.
Create a new WebServerPortFileWriter instance with a specified filename.
Create a new WebServerPortFileWriter instance with a specified file.