本文介绍了如何将JAR文件放入Play 2项目中并使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在播放 1中,我们可以添加一些 JAR 文件放入/lib
目录.但是没有这样的目录,我找不到任何信息来完成此操作.
In Play 1, we can put some JAR files into the /lib
directory. But there is no such a directory, and I don't find any information to do this.
Play 2使用存储库,但有时我只想使用一种快速而肮脏的方式来使用JAR文件.我该怎么办?
Play 2 uses repositories, but sometimes I just want a quick and dirty way to use a JAR file. How do I do that?
推荐答案
由于Play 2应用程序是使用 sbt构建的,您只需遵循不受管理的依赖项的约定即可>:将您的 JAR 文件放在lib/
目录中.
Since Play 2 applications are built using sbt, you can just follow their convention for unmanaged dependencies: put your JAR file in the lib/
directory.
这篇关于如何将JAR文件放入Play 2项目中并使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!