Annotation Interface Autowired


@Target({FIELD,METHOD,CONSTRUCTOR}) @Retention(RUNTIME) public @interface Autowired
Autowired annotation to replace Spring's @Autowired.
自动装配注解,用于替换Spring的@Autowired。
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the dependency is required.
  • Element Details

    • required

      boolean required
      Whether the dependency is required.
      依赖是否是必需的。
      Returns:
      true if required
      如果是必需的则返回true
      Default:
      true