com.greendot.db.jpa.configuration.PropertiesConfiguration.java Source code

Java tutorial

Introduction

Here is the source code for com.greendot.db.jpa.configuration.PropertiesConfiguration.java

Source

/*
 *  This file is subject to the terms and conditions defined in file 'LICENSE.md',
 *  which is part of this source code package.
 */

package com.greendot.db.jpa.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * @author matt.d.vickery@greendotsoftware.co.uk
 * @since 10/25/16.
 */
@Configuration
@PropertySource(value = { "classpath:properties/app.properties",
        "classpath:properties/app-${spring.profiles.active:default}.properties" }, ignoreResourceNotFound = false)
public class PropertiesConfiguration {

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {

        return new PropertySourcesPlaceholderConfigurer();
    }
}