play Modules & 使用成熟的Java模块、框架、Spring & 模块和插件的区别
play module repository:这里的模块仓库是给Play 1.x用的(注意,这里的所有module都是定制的,譬如spring-1.0.2module,1.0.2是模块的版本,而里面包含的sprin的版本是2.5.5)。Play 2.x的模块可以放在Ivy, Maven 或者 Git仓库。
play 1.x的Spring模块:允许在play中使用Spring来管理java bean。其源代码和使用方法在https://github.com/pepite/Play--framework-Spring-module
安装spring模块:使用命令play install spring-{version}在本地安装
项目中使用spring模块:在dependencies.yml中使用下述命令来引入对spring模块的依赖。
app/controllers/firstmoduleapp/models/firstmoduleapp/views/firstmoduleapp/views/tags/firstmodulebuild.xmlcommands.pyconf/messagesconf/routeslibsrc/play/modules/firstmodule/MyPlugin.javasrc/play.plugins