Is it possible to determine the value of the @RequestMapping annotation in Spring by defining it in the properties file?
Actually, I am doing something like:
@Controller @RequestMapping("/xxx") public class MyController { ... }
But I would like to save the path /xxx in the properties file. What for? For example, it is less likely that I make puzzles in my templates if I rename the path in the controller.
In other frameworks, this is allowed (see, for example, Symfony).
java spring spring-mvc annotations
Jeanvaljean
source share