Skip to content
jasonChiu edited this page Jan 29, 2015 · 2 revisions

Configuration File

There are five configuration files for location server now. You have to put them to correct path and give valid value or the server will not be launched successfully.

File Path

In location-server module: src/main/resources/production

Files

  • connection.properties : for connection pool (hikariCP), check out the information here

    dataSourceClassName = [ your datasource class ] ( ex: com.mysql.jdbc.jdbc2.optional.MysqlDataSource )
    dataSource.url = [ your jdbc url ] ( ex: jdbc:mysql://localhost/dbname )
    dataSource.user = [ your user name ]
    dataSource.password = [ your password ]
    ... or other hikariCP settings
    
  • database.properties : for database initialization

    Field Optional Description
    init_database required true if you want to rebuild your database every times you start the server
    init_database_file required file path to your .sql file to be executed if init_database is true
    init_database = [ true / false ]
    init_database_file = classpath:develope/data.sql
    
  • hibernate.properties : for hibernate orm

    Field Optional Description
    hibernate.dialect required the dialect corresponding to your database
    ... optional other properties will be used to configure hibernate
    hibernate.dialect  = org.hibernate.spatial.dialect.mysql.MySQLSpatialInnoDBDialect
    hibernate.show_sql = [ true / false ]
    ...or other hibernate setting
    
  • lucene.properties : for Lucene

    Field Optional Description
    lucene.index.path required the path to store index files generated by lucene indexer
    lucene.index.path = path/to/store/lucene/indexes
    
Clone this wiki locally