do all java mvc based frameworks require you to wire up each and every file in a config file?
like in .net you can create generic routes that map to things like:
controller/action/parameter
I’m currently reading up on spring, but haven’t reach the MVC part yet.
Spring MVC allows this thing then
org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMappingis active, for example, given config:And controller implementation:
URLs
/sample/helloand/sample/byewill be mapped to the corresponding methods.For controller/action/parameter kind of mapping controller looks so: