This allows using symlinks for SSL certificate hot reloading.

In my company we have services on k8s with SSL certificates stored on a mounted volumes. Since they are symlinks, we cannot use hot-reloading, because the content is changed in the file under the symlink, not the symlink itself. This change make FileWatcher watch not only the symlink, but also the file it resolves to.

Comment From: pivotal-cla

@tmaciejewski Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@tmaciejewski Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@tmaciejewski thank you for making your first contribution to Spring Boot.