Notice
Link
- Today
- Total
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ffmpeg
- CentOS
- MySQL
- 피쉬랜드
- springboot 재가동
- 코드로 서버 재실행
- kill -9
- c언어
- pid 찾아 kill
- view 획득
- vc++
- reactnative
- mybatis exception
- 터치좌표 view
- CSS
- 파티션 빠른 삭제
- Back 키 클릭 감지
- rn
- sql exception
- SQL
- springboot
- 스크롤적용
- Activity 전체화면
- 시간대별 통계
- MariaDB
- MFC
- group by
- 말줌임 CSS
- 가변영역 스크롤
- 시간대 테이블생성
Archives
목록modelattribute (1)
개발은 하는건가..
[Springboot] @ControllerAdvice 를 통해 global ModelAttribute 적용하기
@Controller 에서 요청 별로 공통 속성을 추가할 경우 다음과 같이 @ControllerAdvice 클래스를 생성하여 @ControllerAdvice 어노테이션 추가 후 @ModelAttribute 를 추가하고 전달된 Model 파라메터에 필요한 속성들을 추가한다. @ControllerAdvice public class CommonControllerAdvice { @ModelAttribute public void handleRequest(HttpServletRequest request, Model model) { String requestURI = request.getRequestURI(); // 다음과 같은 식으로 공통으로 사용될 속성들을 추가한다. model.addAttribute("appVe..
SpringBoot , Thymeleaf
2022. 4. 7. 18:42