
SpEL은 런타임에 객체 그래프를 쿼리하고 조작하는 것을 지원하는 강력한 표현 언어이다. 언어표현은 Unified EL과 비슷하지만 추가 기능, 특히 메서드 호출 및 기본 문자열 템플릿 기능을 제공한다.
(https://docs.spring.io/spring-framework/docs/3.2.x/spring-framework-reference/html/expressions.html 참고)
@Value, @PreAuthorize, @PostAuthorize, @PreFilter, @PostFilter
괄효안의 내용을 spEL 표현식으로 인식한다.
@PreAuthorize("hasAuthority('MASTER') or #username == authentication.name")
public void updateUserProfile(String username, UserProfile profile) {
// 프로필 업데이트 로직
}