无法从Spring Controller访问Controller Annotation数据

问题描述 投票:0回答:1

我正在开发一个Maven插件,它生成一些与Spring Controllers相关的应用程序元数据。目前我无法获得我的弹簧控制器的“控制器”注释(具有“值”属性)所以我有点卡住... "analyzedClass" is the class instance from my Spring Controllers

我怎么能得到这个注释及其价值? Thankx

reflection controller metadata
1个回答
0
投票

Thankx to all !. This could did it !!!.

这段代码让我得到了理想的值。谢谢大家

© www.soinside.com 2019 - 2024. All rights reserved.