I tried to use inbuilt Spring Annotations in adapters. Basically I tried @Autowired.
I guess the bean is not getting registered.Are there any configurations involved?
Adapters in MFP are not working with spring OOTB. Therefore, @Autowire and all those kind of annotations are not expected to work.
However, if you consider migration to MFP 8.0.0, you can integrate spring into your adapter and then @Autowire will work.
See the blog: https://mobilefirstplatform.ibmcloud.com/blog/2016/04/24/MobileFirst-spring-integration-in-java-adapters/