扫码关注官方订阅号
比如public @interface RequestMapping {String name() default "";...
}@RequestMapping(name="xxx",value="xxx")可以理解但是@RequestMapping("/")则不理解到底给谁赋值了,是默认第一个?
光阴似箭催人老,日月如移越少年。
默认是给名为"value"的属性赋值。
https://docs.oracle.com/javase/tutorial/java/annotations/basics.html
If there is just one element named value, then the name can be omitted.
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
默认是给名为"value"的属性赋值。
https://docs.oracle.com/javase/tutorial/java/annotations/basics.html