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
- rn
- springboot
- mybatis exception
- pid 찾아 kill
- group by
- MFC
- 터치좌표 view
- c언어
- CentOS
- 말줌임 CSS
- 시간대 테이블생성
- vc++
- sql exception
- 스크롤적용
- Back 키 클릭 감지
- 파티션 빠른 삭제
- 시간대별 통계
- CSS
- reactnative
- 가변영역 스크롤
- MariaDB
- Activity 전체화면
- view 획득
- kill -9
- SQL
- springboot 재가동
- 코드로 서버 재실행
- ffmpeg
- 피쉬랜드
- MySQL
Archives
목록mybatis exception (1)
개발은 하는건가..
[mybatis] Sql Exception 처리
Repository 에 다음과 같이 DataAccessException 을 throws 해준다. @Repository @Mapper public interface UserRepository { int insertUser(UserInfoDTO uid) throws DataAccessException; } 아래와 같이 서비스에서 Repository 함수를 호출하면서 Exception 을 catch 하여 처리해준다. @Service @RequiredArgsConstructor public class UserService { private final UserRepository _UserRepo; public int addUser(UserInfoDTO user) { int res = 0; try { user.se..
SpringBoot , Thymeleaf
2023. 9. 12. 16:42