Skip to content

Commit

Permalink
/hello에 들어갈 글자를 지정해줄 컨트롤러
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoochanhong committed Mar 19, 2023
1 parent 151eaf6 commit 42fbd57
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HelloController {
@GetMapping("hello")
public String Hello(Model model){
model.addAttribute("data","hello!!");
return "hello";
}
}

0 comments on commit 42fbd57

Please sign in to comment.