How to dynamically create spring addViewController?

Viewed 18

How to dynamically create spring addViewController?

I have the following sources:

registry.addViewController("/test").setViewName("admin/test/test");
registry.addViewController("/test2").setViewName("admin/test2/test2");
registry.addViewController("/test3").setViewName("admin/test3/test3");
...

I want to do url mapping according to the html name in the template folder like this, but I'm curious how it is possible.

Best Regards!

0 Answers
Related