How to set environment variable?

Hi.
How to set environment in payara 5? and then to give it in the application.properties file spring boot?
ps.
i want to set a path for a log file(C:/myfolder/file.log) in the server by environment
and then call it in the application.properties