Playframework play framework alternate application.conf文件slick数据源连接失败

Playframework play framework alternate application.conf文件slick数据源连接失败,playframework,configuration,slick,Playframework,Configuration,Slick,我让我的应用程序使用application.conf。我现在希望这个应用程序的副本以不同的方式运行,所以我为这个实例创建了一个备用conf文件 应用程序运行,我可以访问静态资源,但是,需要访问数据源的端点不响应。这是一个巧妙的限制吗?这里怎么了 application.conf play.crypto.secret = "onlyHoudiniKnows" play.i18n.langs = [ "en" ] slick.dbs.default.driver="slick.driver.

我让我的应用程序使用application.conf。我现在希望这个应用程序的副本以不同的方式运行,所以我为这个实例创建了一个备用conf文件

应用程序运行,我可以访问静态资源,但是,需要访问数据源的端点不响应。这是一个巧妙的限制吗?这里怎么了

application.conf

play.crypto.secret = "onlyHoudiniKnows"    
play.i18n.langs = [ "en" ]
slick.dbs.default.driver="slick.driver.MySQLDriver$"
slick.dbs.default.db.driver="com.mysql.jdbc.Driver"
slick.dbs.default.db.url="jdbc:mysql://localhost:3306/mydb?user=myuser"
slick.dbs.default.db.password="password"
alternate.conf

include "application"

play.crypto.secret="onlyDavidCopperfieldKnows"
slick.dbs.default.db.url="jdbc:mysql://localhost:3306/myalternatedb?user=myalternateuser"
http.port=9005
play.evolutions.db.default.autoApply=true
startserver.sh

#!/bin/bash
echo "Starting My Server..."
/myserver-1.0-SNAPSHOT/bin/myserver -Dconfig.file=/myserver-1.0-SNAPSHOT/conf/alternate &
exit 0

我认为您在
alternate.conf

您需要将文件扩展名保持为

include "application.conf"

我认为您在
alternate.conf

您需要将文件扩展名保持为

include "application.conf"