일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- javascript
- 정규식
- Visual Studio Code
- 이클립스
- list
- string
- 테이블
- ArrayList
- 이탈리아
- Array
- Java
- json
- table
- CSS
- 자바스크립트
- CMD
- Maven
- 자바
- Eclipse
- date
- input
- 인텔리제이
- windows
- vscode
- 배열
- IntelliJ
- js
- Button
- 문자열
- html
- 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..