Skip to content

@Secured #6

@seongjihye1994

Description

@seongjihye1994

@secured

@secured특정 권한만 접근이 가능하다는 것을 나타내는 Annotation이다.

간단하게 특정 기능은 Admin(manager)만 이용하게 하고 싶은 경우 위의 Annotation을 붙여주면 된다.

@Secured("ROLE_MANAGER") **// ROLE_MANAGER 만 접근 가능하게 설정**
@GetMapping("/manager")
public @ResponseBody String manager() {
	return "매니저 페이지입니다.";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions