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 |
Tags
- Android
- Greedy
- 스프링 핵심 원리
- JDBC
- SpringBoot
- pointcut
- Servlet
- JPQL
- spring
- 그리디
- 인프런
- Proxy
- QueryDSL
- AOP
- 자바
- http
- 스프링 핵심 기능
- Spring Boot
- 김영한
- db
- kotlin
- springdatajpa
- 알고리즘
- java
- 백준
- Thymeleaf
- transaction
- 스프링
- jpa
- Exception
Archives
- Today
- Total
목록@ModelAttribute사용법 (1)
개발자되기 프로젝트
HTTP 요청 파라미터 - @ModelAttribute
요청 파라미터를 받아서 객체를 만들고 그 객체에 값을 하나하나 넣어줘야 한다. @ModelAttribute를 사용하면 바인딩을 편하게 할 수 있음. 1. Hello @Data public class HelloData { private String username; private int age; } 2. @ModelAttribute 적용 적용 전 @ResponseBody @RequestMapping("/model-attribute-v1") public String modelAttributeV1(@RequestParam String username, @RequestParam int age){ Hello helloData = new Hello(); helloData.setUsername(username); h..
인프런/[인프런] 스프링 MVC 1
2021. 9. 14. 22:10