Inheritance of annotations in SpringMVC

Subclass: DepositTaskController
Parent class: CrudController

There is a method get() in the parent class and the mapping is: /get. If there is a method getTask() in the subclass, and the mapping is /get , an
error will be reported when compiling: prompting that the mapping already exists, there is already 'depositTaskController' bean method
fact Prove that subclasses inherit parent class annotations.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325990098&siteId=291194637