Add user, post 게시판 기능 추가

This commit is contained in:
Daeil Choi
2023-02-02 18:01:03 +09:00
parent 8a6acc9dfc
commit 41c2dc134a
29 changed files with 711 additions and 90 deletions

View File

@@ -0,0 +1,17 @@
package com.example.springsecuritystudy.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class SampleController {
@GetMapping("/example")
public String example(Model model) {
model.addAttribute("name", "정우성");
model.addAttribute("age", 51);
return "example";
}
}