Ask Your Question
1

Can we use a method parameter by implying it via an annotation?

asked 2023-06-05 03:51:11 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-05 04:04:02 +0000

scrum gravatar image

Yes, we can use a method parameter by implying it via an annotation. By using annotations, we can provide additional information about a method parameter such as its data type, its required status, its default value, its valid range or its constraints. This information can be useful for validation, documentation or runtime processing of the method parameter. Some examples of annotations that can be used for method parameters are @PathParam, @QueryParam, @RequestBody, @RequestParam, @JsonIgnoreProperties, etc.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-05 03:51:11 +0000

Seen: 3 times

Last updated: Jun 05 '23