我刚开始使用 boxfuse,似乎无法找到一种方法来配置我的开发数据库。
在我的 boxfuse.yml 我有(对于数据库部分):
database:
# the name of your JDBC driver
driverClass: com.mysql.jdbc.Driver
# the username
user: root
# the password
password: <password>
# the JDBC URL
url: jdbc:mysql://10.0.0.84:3306/dmsdb
# any properties specific to your JDBC driver:
properties:
charSet: UTF-8
hibernate.dialect: org.hibernate.dialect.MySQLInnoDBDialect
# the maximum amount of time to wait on an empty pool before throwing an exception
maxWaitForConnection: 1s
# the SQL query to run when validating a connection's liveness
validationQuery: "/* MyApplication Health Check */ SELECT 1"
# the minimum number of connections to keep open
minSize: 8
# the maximum number of connections to keep open
maxSize: 32
# whether or not idle connections should be validated
checkConnectionWhileIdle: false
如果我尝试运行它(boxfuse run),我的应用程序根本无法运行。
boxfuse info 产生以下内容:
oxfuse 客户端 v.1.18.7.938 版权所有 2016 Boxfuse GmbH。版权所有。
帐号:mlr11 (mlr11)
开发环境中有关 mlr11/dms-service 的信息:
App Type : Single Instance with Zero Downtime updates
App URL : http://127.0.0.1:8082
DB Type : MySQL database
DB URL : jdbc:mysql://localhost:3306/boxfuse-dev-db
DB Host : localhost
DB Port : 3306
DB Database : boxfuse-dev-db
DB User : boxfuse-dev-db
DB Password : boxfuse-dev-db
DB Status : available
这与我的预期非常不同。URL、数据库、用户、密码)与我的 boxfuse.yml 文件不匹配。
我错过了什么。我知道这一定很简单。我进行了各种搜索并阅读了几次文档。我似乎无法找到问题所在。任何指针将不胜感激。