1

升级到 Play 2.1 后,应用程序启动时的日志消息很少。这是什么意思?

[debug] application - class controllers.WebProfile is not the right type
[debug] application - class controllers.WebProfile is not the right type
[debug] application - class controllers.WebProfile is not the right type
[debug] application - class controllers.WebDemo is not the right type
[debug] application - class controllers.WebDemo is not the right type
4

1 回答 1

1

你在你的项目中使用 swagger 吗?

如果是这样,您的控制器没有 api 注释。

看看:https ://github.com/wordnik/swagger-core/blob/master/modules/swagger-play2/app/play/modules/swagger/ApiHelpInventory.scala#L210

于 2013-03-08T13:16:33.747 回答