Skip to content

Redirect 시 파라미터를 전달하고 싶은 경우 #13

@1876070677

Description

@1876070677

RedirectAttributes에 파라미터를 담을 수 있다.
이 경우 url에 쿼리 스트링으로 값이 담긴다.

컨트롤러에서 RedirectAttributes를 인자로 받는다.
메소드 내부에서 redirectAttributes.addAttributes("key", "value"); 로 담는다.

실제 수정이 이루어진 커밋: b6d73dd

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions