playframework / play1

Play framework
https://www.playframework.com/documentation/1.4.x/home
Other
1.58k stars 682 forks source link

Can not create custom datasource config #1427

Closed ashishpmalkar closed 2 years ago

ashishpmalkar commented 2 years ago

Unable to config custom datasource. I am trying load custom data source from java class on start up. but every time application start up. default database configuration gets loaded and try to connect database from application.conf file


db {
  default {
    driver = com.mysql.jdbc.Driver
    host = "localhost"
....
}

I tried to use below still it accessing default database play.db.prototype.hikaricp.initializationFailFast=false db.default.migration.initOnMigrate=false db.default.migration.validateOnMigrate=false

Play Version (2.5.X)

Flyaway version 3.2

Operating System (Windows 10)

Use uname -a if on Linux.

JDK (1.8.X)

aleksandy commented 2 years ago

@ashishpmalkar, you should ask your question here.

This project is play 1.x

xael-fry commented 2 years ago

wrong project => closing it