스프링부트 프로젝트 만들기(2)
-
스프링부트+jsp로 배달사이트 만들기-15 리뷰작성
리뷰 작성을 위해 StoreController에 추가합니다 // 리뷰 작성 @PostMapping("/store/review") public String review(Review review, MultipartFile file, @AuthenticationPrincipal LoginService user) throws IOException { if (file.isEmpty()) { String img = "/img/none.gif"; review.setReviewImg(img); } else { } long userId = user.getUser().getId(); review.setUserId(userId); storeService.reviewWrite(review); return "redirect:/..
2021.12.08 -
스프링부트+jsp로 배달사이트 만들기-04 mypage, 로그인페이지 만들기
아래 코드를 해당 위치에 붙여넣기합니다 UserController @Controller public class UserController { @GetMapping("/myPage") public String myPage() { return "user/myPage"; } @GetMapping("/login") public String login() { return "user/login"; } } myPage.css section.title { width: 100%; } section.title h1 { text-align: center; margin : 30px 0 30px 0 ; } /* 콘텐츠 */ main { /* min-height: 390px; */ } main .container { max-wi..
2021.12.04