반응형
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
- windows
- 이클립스
- 테이블
- string
- input
- Button
- json
- 자바
- table
- js
- javascript
- CSS
- IntelliJ
- ArrayList
- list
- 문자열
- vscode
- 인텔리제이
- date
- 이탈리아
- Array
- Java
- Eclipse
- 배열
- Visual Studio Code
- html
- 자바스크립트
- Files
- Maven
- CMD
Archives
- Today
- Total
목록annotation (1)
어제 오늘 내일
[Spring Boot] @RequestParam 어노테이션 사용법
@RequestParam @RequestParam 어노테이션은 Servlet request parameters (Query Parameter, Form data)를 Controller의 메소드 파라미터와 바인딩하는 역할을 한다. 기본 사용법 @GetMapping("/say-hello") public String helloMvc(@RequestParam String name, Model model) { model.addAttribute("data", name); return "hello-template"; } http://localhost:8080/say-hello?name=anna 위와 같이 쿼리 파라미터로 전달된, name이 helloMvc() 메소드의 파라미터 이름 'name'과 바인딩된다. name..
IT/SpringBoot
2023. 12. 20. 06:20