사용자 도구

사이트 도구


springframework:spel

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
springframework:spel [2010/12/14 17:11]
kwon37xi 새로 만듦
springframework:spel [2018/08/10 17:16] (현재)
kwon37xi
줄 1: 줄 1:
 ====== SpEL ====== ====== SpEL ======
 +  * [[http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html|SpEL]]
 +  * [[https://dzone.com/articles/learn-spring-expression-language-with-examples|Learning the Spring Expression Language (SpEL) - DZone Java]]
 +
 ===== 상수 사용하기 ===== ===== 상수 사용하기 =====
 <code> <code>
-#{T(FQCN).상수}+#{T(fully.qualified.ClassName).CONSTANT}
 </code> </code>
 +===== Operators ===== 
 +  * Safe Navigation Operator 
 +    * ''user?.address?.postcode'' 형태로 사용할 경우 user와 address가 null이라도 오류가 발생하지 않게 된다. 
 +    * [[http://entireboy.egloos.com/4648216|[Spring] Safe navigation operator(?.) in SpEL(Spring Expression Language)]] 
 +  * Elvis Operator 
 +    * 지정된 값이 없을 경우 default 값 사용 
 +    * ''@Value("#{myPorperties['my.file.key']?:'/my/default/file/path'}")'' 여기서 ''my.file.key''값이 없으면 기본으로 뒤에 나온 ''/my/defalt/file/path'' 사용 
 +    * [[http://entireboy.egloos.com/4648215|[Spring] Elvis operator(?:) in SpEL(Spring Expression Language)]]
springframework/spel.1292314315.txt.gz · 마지막으로 수정됨: 2010/12/14 17:11 저자 kwon37xi