小编Ran*_*mar的帖子

Play框架2.2.2演进不会在mysql中被解雇

在播放文档中的示例todo应用程序中,使用mysql创建任务表并未创建演变.我试过用

applyEvolutions.default=true
Run Code Online (Sandbox Code Playgroud)

在application.conf中.甚至尝试过启动应用程序

start -DapplyEvolutions.default=true 
Run Code Online (Sandbox Code Playgroud)

mysql查询也不是问题,因为在mysql控制台中手动输入它使其正常工作.db连接也没有问题,因为在手动创建表之后,插入和删除操作在应用程序中运行良好.

这里的application.conf进一步参考

    # This is the main configuration file for the application.
# ~~~~~

# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
application.secret="PwleF1NyxkZ[8Oq`j`^NMg:6Vu6MMiHv?s:Ff>3@VpiKfA^9qSvb/E_>5[BRq>h6"

# The application languages
# ~~~~~
application.langs="en"

# Global object class
# ~~~~~
# Define the Global object class for this application.
# Default to Global in the root …
Run Code Online (Sandbox Code Playgroud)

mysql scala playframework scala-2.10 playframework-2.0

4
推荐指数
1
解决办法
3407
查看次数