I am reading a file path from spring properties file as shown below and that is mapped into a java class
#file path
file.path =/root/ms_data/file/
and it is mapped into java class like this
@Value("${file.path}")
private String fileDataPath;
Please advise can I keep it as final I mean like this as shown below in which I kept fileDataPath as the final one
@Value("${file.path}")
private final String fileDataPath;