@Autowired(required=false) By default the dependency injection for @Autowired must be fulfilled because the value of required attribute is true by default. We can change this behavior by using @Autowired(required=false). In this case if bean is not found for dependency injection, it will not through error.
Please have look at https://www.concretepage.com/spring/spring-autowired-annotation#required-false
But @Inject doesn’t need (required=false) it will not through error if dependency is not found