| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 자바문법
- 정규식
- 단위테스트
- list
- vscode
- 테스트자동화
- CSS
- Java
- junit
- math
- 자바
- js
- ArrayList
- string
- 문자열
- 스프링부트
- javascript
- java테스트
- 자바스크립트
- Array
- input
- html
- HashMap
- 배열
- 인텔리제이
- junit5
- SpringBoot
- IntelliJ
- Eclipse
- Visual Studio Code
- Today
- Total
목록spring (2)
어제 오늘 내일
getBeanDefinitionNames() ApplicationContext의 이 메소드는 ApplicationContext 안의 모든 Bean 이름을 배열로 리턴합니다. 이 메소드를 이용하여 등록된 모든 Bean의 목록을 출력할 수 있습니다. @SpringBootApplication public class HelloSpringApplication { private static ApplicationContext context; public static void main(String[] args) { context = SpringApplication.run(HelloSpringApplication.class, args); printBeanList(); } public static void printBea..
@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..