Skip to content

Instantly share code, notes, and snippets.

@m-cakir
Last active September 28, 2017 10:37
Show Gist options
  • Select an option

  • Save m-cakir/89ff5ab03d3999ebb24231c3f4f35c7d to your computer and use it in GitHub Desktop.

Select an option

Save m-cakir/89ff5ab03d3999ebb24231c3f4f35c7d to your computer and use it in GitHub Desktop.
package com.mcakir.bootiful.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
@Component
@ConfigurationProperties("cache")
public class CacheProperties {
Map<String, Long> expirations = new HashMap<String, Long>();
public Map<String, Long> getExpirations() {
return expirations;
}
public void setExpirations(Map<String, Long> expirations) {
this.expirations = expirations;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment