mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-07 17:23:11 +00:00
28 lines
850 B
Java
28 lines
850 B
Java
![]() |
package config;
|
||
|
|
||
|
import com.linkedin.metadata.config.cache.CacheConfiguration;
|
||
|
import com.linkedin.metadata.spring.YamlPropertySourceFactory;
|
||
|
import lombok.Data;
|
||
|
|
||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||
|
import org.springframework.context.annotation.PropertySource;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Minimal sharing between metadata-service and frontend
|
||
|
* Initially for use of client caching configuration.
|
||
|
* Does not use the factories module to avoid transitive dependencies.
|
||
|
*/
|
||
|
@EnableConfigurationProperties
|
||
|
@PropertySource(value = "application.yml", factory = YamlPropertySourceFactory.class)
|
||
|
@ConfigurationProperties
|
||
|
@Data
|
||
|
public class ConfigurationProvider {
|
||
|
|
||
|
/**
|
||
|
* Configuration for caching
|
||
|
*/
|
||
|
private CacheConfiguration cache;
|
||
|
}
|