package com.juick.www.configuration; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import ru.sape.Sape; /** * Created by vitalyster on 29.03.2017. */ @Configuration public class SapeConfiguration { @Value("${sape_user}") private String token; @Bean public Sape sape() { return new Sape(token, "juick.com", 2000, 3600); } }