private RelaxedPropertyResolver liquiBasePropertyResolver;
private RelaxedPropertyResolver jhipsterPropertyResolver;</BUG>
private Environment env;
@Autowired(required = false)
private MetricRegistry metricRegistry;
<BUG>@Override
public void setEnvironment(Environment env) {
this.env = env;
this.dataSourcePropertyResolver = new RelaxedPropertyResolver(env, "spring.datasource.");
this.liquiBasePropertyResolver = new RelaxedPropertyResolver(env, "liquiBase.");
this.jhipsterPropertyResolver = new RelaxedPropertyResolver(env, "jhipster.datasource.");
}</BUG>
@Bean(destroyMethod = "close")

import java.util.Arrays;
@Configuration
@EnableJpaRepositories("com.mycompany.myapp.repository")
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware")
@EnableTransactionManagement
public class DatabaseConfiguration  {
private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class);
@Inject
private Environment env;
@Autowired(required = false)
private MetricRegistry metricRegistry;
@Bean(destroyMethod = "close")
