| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Security 로그인
- SpringBoot
- 리액트 심플캡차
- Spring Security
- react simple captcha
- 리액트 캡차
- react 상태
- ChatGPT
- react 자동입력방지
- spring security 로그인
- CI
- myBatis
- react captcha
- jpa
- 젠킨스
- 스프링 시큐리티 로그인
- Spring Boot
- maven
- REACT
- react 캡차
- react 심플캡차
- build
- 스프링
- git
- error
- spring error
- 스프링 시큐리티
- 에러
- Docker
- 깃
Archives
- Today
- Total
목록spring MVC (1)
I can do it(Feat. DEV)
다른 프로젝트에서 @ControllerAdvice라는 어노테이션을 발견함. 갓글에 검색해보니 보편적으로 패키지로 범위를 지정하여 전역 컨트롤러를 만듦으로써, 예외 처리를 적용시킬 때 사용하는 것 같음. 필자는 예외 처리 말고 또 다른 사용법 중 하나인 @ModelAttribute를 이용하여 다른 컨트롤러에서 뿌려주는 화면 단에서 모델 정보를 사용할 예정임. 먼저 ControllderAdvice 클래스를 만들어야 함. //JPA, Spring Boot 사용 @ControllerAdvice(basePackages = {"com.exam.controller.user"})//패키지 설정 public class UserControllerAdvice { @Autowired private BoardRepository..
개발자 모드/응용
2022. 10. 25. 17:42