blob: d3b1aa9be6f4229c11cec0c6cc5a547936a630e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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");
}
}
|