Play Framework 2.2.x multiple route files

血红的双手。 提交于 2019-12-04 13:36:43

I believe to take advantage of routing from a module, you have to structure your project as a multi-project build, not a library dependency.

Take a look at http://www.playframework.com/documentation/2.2.x/SBTSubProjects for how to setup the multi-project build.

Have you tried including the routes file from your referenced module in the default routes file? If not try:

include "api/mymodule/routes"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!