Java常用注解注解使用注解什么是注解(Annotation)?注解是放在Java源码的类、方法、字段、参数前的一种特殊“注释”: // this is a component: @Resource("hello") public class Hello2025-07-01 JavaJava