Subversion Repositories SmartDukaan

Rev

Rev 28323 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28323 Rev 28329
Line 2... Line 2...
2
 
2
 
3
import java.util.HashMap;
3
import java.util.HashMap;
4
 
4
 
5
import org.springframework.beans.factory.annotation.Autowired;
5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.beans.factory.annotation.Value;
6
import org.springframework.beans.factory.annotation.Value;
-
 
7
import org.springframework.cache.annotation.Cacheable;
7
import org.springframework.stereotype.Component;
8
import org.springframework.stereotype.Component;
8
 
9
 
9
import com.spice.profitmandi.common.web.client.RestClient;
10
import com.spice.profitmandi.common.web.client.RestClient;
10
 
11
 
11
@Component
12
@Component
Line 14... Line 15...
14
	RestClient restClient;
15
	RestClient restClient;
15
	
16
	
16
	@Value("${store.app.url}")
17
	@Value("${store.app.url}")
17
	String storeAppUrl;
18
	String storeAppUrl;
18
	
19
	
-
 
20
	@Cacheable(value = "partnerPage", cacheManager = "oneDayCacheManager")
19
	public String getPartnerIndexHtml() throws Exception {
21
	public String getPartnerIndexHtml() throws Exception {
20
		return restClient.get(storeAppUrl, new HashMap<String, String> (), new HashMap<String, String> ());
22
		return restClient.get(storeAppUrl, new HashMap<String, String> (), new HashMap<String, String> ());
21
	}
23
	}
22
}
24
}