Issues regarding usage of Spring MVC @RequestMapping methods
Questions tagged [request-mapping]
348 questions
4
votes
1 answer
Extend class level RequestMapping with custom annotation
I would like to create a custom annotation in my Spring Boot application which always adds a prefix to my class level RequestMapping path.
My Controller:
import com.sagemcom.smartvillage.smartvision.common.MyApi;
import…

Csuki
- 1,297
- 8
- 21
4
votes
3 answers
Spring MVC Diffrence between Path & Variable in @RequestMapping Annotation
I would like to know what are the differences between Path and Variable in Spring MVC in the Controller class.
@RequestMapping("/home")
@RequestMapping(value = "/home")
@RequestMapping(path = "/home")
Base on the Spring Documentation Spring 5…

Mani Zaeim
- 49
- 4
4
votes
1 answer
Is it possible to get the RequestMethod-verb in a custom PreAuthorize method?
I'm using a custom access checker with @PreAuthorize:
@RestController
@RequestMapping("/users")
public class Users {
@PreAuthorize("@customAccessChecker.hasAccessToMethod('USERS', 'GET')")
@RequestMapping(method = RequestMethod.GET)
…

maxo
- 97
- 9
4
votes
2 answers
Multiple requestmapping value with path variables from thymeleaf
I have to send two data from thymeleaf to controller like this in a th:href: