play framework2.1打war包
首先,使用过play1.*版本的开发者应该都知道要将play项目打包发布,可以直接使用play war命令,但是到了2.*以上的版本,已不再支持play war来打包项目。这里将原因解释如下:
They haven't done this because the Servlet3.1 spec has not been released yet. Play 2 supports some features that cannot be supported with Servlet containers <3.1 (probably stuff like web sockets). However, there is a 3rd party plugin that provides this functionality (as long as you avoid the unsupported features):https://github.com/dlecan/play2-war-plugin
所以,想打包的各位直接去上述网站吧,解释很详细,我就不多说了。