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'.
constructor(filename: String)
Create a new WebServerPortFileWriter instance with a specified filename.
constructor(file: File)
Create a new WebServerPortFileWriter instance with a specified file.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard