package com.juick.www.configuration; import com.juick.www.HelpService; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.guava.GuavaCacheManager; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by aalexeev on 12/11/16. */ @Configuration @EnableCaching public class WwwHelpConfiguration { @Bean public GuavaCacheManager cacheManager() { return new GuavaCacheManager("help"); } @Bean public HelpService helpService() { return new HelpService("help"); } }