| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 기초코딩
- CSS
- 자바스크립트 기초
- 웹
- 리액트세팅
- 코딩
- mybatis
- 리액트초기세팅
- 자바
- 자바스크립트
- 기초 코딩
- react
- 마이바티스
- spring
- 구글 oauth
- springboot
- Javascript
- 구글캘린더api
- HTML
- 전자정부 서버세팅
- 자바스크립트기초문법
- Spring Boot
- 웹앱
- 스프링부트
- 처음만나는자바스크립트
- javaspring
- java
- 리액트프로젝트세팅
- 자바스크립트기초
- js
- Today
- Total
목록2023/06/10 (3)
인생 디벨로퍼
DTO 생성 package shop.mtcoding.bankapp.dto.user; import lombok.Getter; import lombok.Setter; @Getter @Setter public class JoinReqDto { private String username; private String password; private String fullname; } Controller @PostMapping("join") public String join(JoinReqDto joinReqDto) { // 1. 인증 // 2. 유효성 검사 if (joinReqDto.getUsername() == null || joinReqDto.getUsername().isEmpty()) { throw new Cu..
커스텀 익셉션 package shop.mtcoding.bankapp.handler.ex; import org.springframework.http.HttpStatus; import lombok.Getter; @Getter public class CustomException extends RuntimeException { private HttpStatus status; public CustomException(String message, HttpStatus status) { super(message); this.status = status; } } 익셉션 핸들러 package shop.mtcoding.bankapp.handler; import org.springframework.web.bind.annota..
package shop.mtcoding.bankapp.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class AccountController { @GetMapping({ "/", "/account" }) public String main() { return "account/main"; } @GetMapping("/account/{id}") public String detail() { return "account/detail"; } @GetMapping("/account/saveForm") public ..