spring http response1 [Spring] Controller와 HTTP Response 메시지 HTML 파일 작성 static/hello.html Hello, Spring 정적 웹 페이지!! templates/hello.html Hello, Spring templates 페이지!! templates/hello-visit.html Hello, Spring 동적 웹 페이지!! (방문자 수: ) Controller와 HTTP Response 메시지 - HelloResponseController.java 의 전체 코드는 하단에 올려두었다. 1. return "redirect:URL" @Controller @RequestMapping("/response") public class HelloResponseController { @GetMapping("/html/redirect") public String h.. 2023. 4. 14. 이전 1 다음