반응형
SMALL
package com.in28minutes.springboot.myfirstwebapp.login;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class LoginController {
@RequestMapping("login")
public String gotoLoginPage() {
return "login";
}
}
<html>
<head>
<title> Login Page - JSP</title>
</head>
<body>
welcome to the Login Page!
</body>
</html>
반응형
LIST
'Spring > Spring Boot' 카테고리의 다른 글
logging (0) | 2023.09.21 |
---|---|
@RequestParam (0) | 2023.09.21 |
Spring boot @Controller, @ResposeBody (0) | 2023.09.20 |
Spring Data JPA (0) | 2023.09.20 |
JPA marge, find, remove (0) | 2023.09.20 |