Posts
Q&A
์๋ ํ์ธ์.
์๋ ํ์ธ์. ์ง๊ธ ์ ๊ฐ ๋ค์ ์์ฑํ๋๋ฐ ์ด๋ฒ์๋ ๋ฉ๋๋ค... ์ฐจ์ด์ ์ ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค... // @GetMapping("hello")// public String hello(Model model) {// model.addAttribute("date", "hello!!");// return "hello";// } @GetMapping("hello") public String hello(Model model) { model.addAttribute("data", "hello!!"); return "hello"; }
- Likes
- 1
- Comments
- 4
- Viewcount
- 301
Q&A
์๋ ํ์ธ์.
๋ต ์๊ฒ ์ต๋๋ค. package Hello.hellospring.Controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.ui.Model;@Controllerpublic class HelloController { @GetMapping("hello") public String hello(Model model) { model.addAttribute("date", "hello!!"); return "hello"; }}
- Likes
- 1
- Comments
- 4
- Viewcount
- 301
Q&A
Spring Boot๋ฒ์ ์ด ์์ต๋๋ค.
์๋ฐ๋ ์ต์ ๋ฒ์ ์ผ๋ก ํ๋ฉด ๋ ๊น์?
- Likes
- 1
- Comments
- 2
- Viewcount
- 357




