문서의 이전 판입니다!
#{T(fully.qualified.ClassName).CONSTANT}
user?.address?.postcode
형태로 사용할 경우 user와 address가 null이라도 오류가 발생하지 않게 된다.@Value(“#{myPorperties['my.file.key']?:'/my/default/file/path'}”)
여기서 my.file.key
값이 없으면 기본으로 뒤에 나온 /my/defalt/file/path
사용