Annotation @resource & @Autowired introduces Spring bean error

@Resource

@Resource is provided by JDK. Non spring is generally used in the
service interface userservice
implementation class serviceimpl userserviceimpl
when in use

    @Resource
    private UserService userServiceImpl;

Read More: