read url context | SoloLearn: Learn to code for FREE!

+1

read url context

Hi i have a controller method @GetMapping(value ={"viewEmps", "viewEmps/all"}) getEmployee(){} due to a requirement i need to check if "viewEmps/all" and do something else anyone know how would i read the url context and check if "all" keyword exist?

3/25/2020 11:28:21 AM

Duvindu pamaljith

1 Answer

New Answer

0

https://stackoverflow.com/questions/48565550/map-all-requests-instead-of-specific-pattern-in-spring-boot Check this.