ruho6460102044
@ruho6460102044
Reviews Written
-
Average Rating
-
Posts
Q&A
๋๊ฐ์ด ํ๊ฑฐ ๊ฐ์๋ฐ 404 ์ค๋ฅ๊ฐ ๋จ๋ค์..
๊ฐ์ฌํฉ๋๋ค... controller ํด๋๋ฅผ hello.hellospringํด๋ ๋ฐ๊นฅ์ ๋ง๋ค์ด๋ฒ๋ ธ๋ค์
- 0
- 3
- 953
Q&A
๋๊ฐ์ด ํ๊ฑฐ ๊ฐ์๋ฐ 404 ์ค๋ฅ๊ฐ ๋จ๋ค์..
package controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;@Controllerpublic class HelloController { @GetMapping("hello-mvc") public String helloMvc(@RequestParam("name") String name, Model model) { model.addAttribute("name", name); return "hello-template"; }}//HelloController xmlns:th="http://www.thymeleaf.org">th:text="'hello ' + ${name}">hello! empty//hello-template.html
- 0
- 3
- 953




