Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gradle/8.1.1/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/8.1.1/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.1.1/checksums/sha1-checksums.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/FlagDto.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/FlagRes.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/FriendDto.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/FriendRes.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/UserDto.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/UserInfo.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Dto/UserRes.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Model/Flag.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Model/Friend.class
Binary file not shown.
Binary file not shown.
Binary file modified out/production/classes/com/flag/flag_back/Model/User.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 7 additions & 5 deletions src/main/java/com/flag/flag_back/Controller/HelloController.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package com.flag.flag_back.Controller;

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

@RestController
@Controller
public class HelloController {

@GetMapping("/api/hello")
public String hello(){
return "미지!";
@GetMapping("hello")
public String hello(Model model) {
model.addAttribute("data", "hello!!!");
return "hello";
}
}