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
- 인프런
- jpa
- spring
- 알고리즘
- 자바
- 스프링
- transaction
- 그리디
- pointcut
- 스프링 핵심 기능
- JDBC
- 김영한
- kotlin
- Android
- QueryDSL
- http
- 백준
- Exception
- 스프링 핵심 원리
- Thymeleaf
- java
- SpringBoot
- db
- springdatajpa
- Proxy
- Spring Boot
- AOP
- Servlet
- Greedy
- JPQL
Archives
- Today
- Total
목록@ModelAttribute 사용법 (1)
개발자되기 프로젝트
[WebPage] 상품등록 - @ModelAttribute
1. POST - HTML Form content-type: application/x-www-form-urlencoded 메시지 바디에 쿼리 파리미터 형식으로 전달 itemName=itemA&price=10000&quantity=10 예) 회원 가입, 상품 주문, HTML Form 사용 Form에서 지정한 이름으로 넘어옴. 2. Controller 2.1 @RequestParam 요청 파라미터를 처리하는 방법 변수 명은 Form에서 지정한 name으로 넘어옴. 상품 등록 form에서 상품 명은 itemName, 가격은 price, 수량은 quantity로 넘어온다. @RequestParam을 활용하여 요청 파라미터 사용이 가능. @PostMapping("/add") public String save(@R..
인프런/[인프런] 스프링 MVC 1
2021. 9. 17. 20:03