Package eu.franzoni.config

Source Code of eu.franzoni.config.RootConfig

package eu.franzoni.config;

import org.springframework.context.annotation.*;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;

@Configuration
@ComponentScan(basePackages = { "eu.franzoni.domain" })
@Import({ PersistenceConfig.class, SecurityConfig.class })
public class RootConfig {
 
  @Bean
  public static PropertyPlaceholderConfigurer propertyPlaceholderConfigurer() {
    PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
    ppc.setLocation(new ClassPathResource("/persistence.properties"));
    return ppc;
  }
 
}
TOP

Related Classes of eu.franzoni.config.RootConfig

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.