Spring Boot 3.0 이상에서 Thymeleaf 3.1 버전이 도입되면서, #request, #session, #response와 같은 기본 제공 객체는 보안과 성능 개선을 위해 기본적으로 비활성화 되었습니다. 이로 인해 #request.requestURI와 같은 표현식이 더 이상 기본적으로 작동하지 않습니다.
2024-12-15T14:05:20.912+09:00 DEBUG 12608 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet : Failed to complete request: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "requestURI.startsWith('/management')" (template: "layouts/layout-left-aside" - line 38, col 65)
2024-12-15T14:05:20.914+09:00 ERROR 12608 --- [nio-8081-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "requestURI.startsWith('/management')" (template: "layouts/layout-left-aside" - line 38, col 65)] with root cause
해결방법
HttpServletRequest를 컨트롤러에서 직접 모델에 추가 하면 해결 됩니다.

th 파일에서 currentURI를 추가해주면 끝
