Play/Java应用程序中的javaWs,javaJpa等依赖项来自哪里? [英] Where do the dependencies javaWs, javaJpa, etc. come from in Play/Java application?

查看:105
本文介绍了Play/Java应用程序中的javaWs,javaJpa等依赖项来自哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java在Play Framework中启动一个新项目.我检查了build.sbt文件,无法理解依赖项名称的来源?

I am starting a new project in Play Framework with Java. I checked the build.sbt file and couldn't understand where the dependencies names came from?

libraryDependencies ++= Seq(
  javaJdbc,
  cache,
  javaWs,
  javaJpa
}

这些名称(例如javaWsjavaJpa等)从何而来?如何检查这些库的版本?

Where did these names like javaWs, javaJpa, etc. com from? How to check the version of these libraries?

推荐答案

此示例中列出的依赖项是play安装附带的依赖项.这些版本与您使用的Play框架版本匹配.

The dependencies listed in this example are the ones that are shipped with your installation of play. The versions match the Play framework version you are using.

Play框架是模块化的,因此您不必在应用程序中使用其所有模块.这就是为什么必须指定所需的模块的原因.

Play framework is modular so you don't have to use all of its modules in your application. That is why you must specify which modules you want.

这篇关于Play/Java应用程序中的javaWs,javaJpa等依赖项来自哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆