My game project is created using the 2.4 playback platform. I want to configure two data types for it: one for testing purposes, one for production.
test datasource
db.test.driver=org.h2.Driver<br>
db.test.url="jdbc:h2:mem:test;MODE=MYSQL;MVCC=false;DB_CLOSE_DELAY=-1"
production data source
db.mysql.driver=com.mysql.jdbc.Driver
db.mysql.url="jdbc:mysql://127.0.0.1:3306/db"
db.mysql.user=root
db.mysql.password=root
I also configure the Ebean server for this two data sources and set the default Ebean source data source as a "test".
ebean.test=["xx.*"]
ebean.mysql=["xx.*"]
ebeanconfig.datasource.default=test
But when I ran my unit test (activator test), I got an error:
[PersistenceException: EbeanServer undefined by default? This is usually set via the ebean.datasource.default property. Otherwise, it must be registered programmatically through registerServer ()]
ebean.datasource.default = test, Ebean , .
? ...