BoardController
페이지 정보
본문
package web.controller;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import web.dto.BoardDTO;
import web.dto.BoardListAllDTO;
import web.dto.PageRequestDTO;
import web.dto.PageResponseDTO;
import web.service.BoardService;
@Controller
@Log4j2
@RequestMapping("/board/")
@RequiredArgsConstructor
public class BoardController {
private final BoardService boardService;
... 생략 ...
@PreAuthorize("hasRole('USER')")
@GetMapping("register")
public void registerGET() {
log.info("registerGET ..............");
}
... 생략 ...
}
- 이전글CustomSecurityConfig 24.07.18
- 다음글▲ /board/register ( 테스트 ) 24.07.18
댓글목록
등록된 댓글이 없습니다.