How to map Multiple controllers in Spring MVC

前端 未结 2 1796
天涯浪人
天涯浪人 2021-02-04 06:44

I have two controllers in my Application; one is userController, where I have add, delete and update methods; the other one is studentController, where

2条回答
  •  被撕碎了的回忆
    2021-02-04 07:06

    We can have any number of controllers, the URL mapping will decide which controller to call..

    Please refer here for detailed Spring MVC multiple Controller example

提交回复
热议问题