package com.juick.components.configuration; import com.google.android.gcm.server.Endpoint; import com.google.android.gcm.server.Sender; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by vital on 29.03.2017. */ @Configuration public class GCMConfiguration { @Value("${gcm_key}") private String gcmKey; @Bean public Sender GCMSender() { return new Sender(gcmKey, Endpoint.GCM); } }