I have to make a Rest API in Spring Java for a multi tier arch in which DAO, Controller, Service manager needs to be build for a Firebase Cloud Messaging (FCM) to send push
@Autowire the FCM in your @Component class after configure your FCM account. tutorial