Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- transaction
- Servlet
- http
- 백준
- 스프링 핵심 원리
- jpa
- db
- Exception
- Greedy
- 스프링 핵심 기능
- Proxy
- JDBC
- 그리디
- JPQL
- 김영한
- springdatajpa
- Thymeleaf
- QueryDSL
- java
- SpringBoot
- kotlin
- 자바
- Android
- 인프런
- 알고리즘
- pointcut
- AOP
- Spring Boot
- spring
- 스프링
Archives
- Today
- Total
목록@NotEmpty (1)
개발자되기 프로젝트
회원 등록
1. memberForm 회원 가입에서 넘어오는 회원 데이터 Entity와 분리 @NotEmpty를 통한 validation가능. empty일 경우 스프링이 error띄움. @Getter @Setter public class MemberForm { @NotEmpty(message = "회원 이름은 필수입니다.") private String name; private String city; private String street; private String zipcode; } 2. MemberController createForm - @GetMapping - 해당 Get method로 해당 url 접근하면 회원가입 화면으로 이동. - 빈 MemberForm들고감. --> validation에 활용. @Con..
인프런/[인프런] Springboot와 JPA활용 1
2021. 8. 6. 16:55