Class SourceData


  • @Configuration
    public class SourceData
    extends java.lang.Object
    Configuration for Database
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceData()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.sql.DataSource getDataSource()
      Creates a MySQL datasource Reads url, password and username from config.properties file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SourceData

        public SourceData()
    • Method Detail

      • getDataSource

        @Bean
        @Profile("dev")
        public javax.sql.DataSource getDataSource()
        Creates a MySQL datasource Reads url, password and username from config.properties file
        Returns:
        DataSource object