如何在Play框架中安装AWS SDK? [英] How do i install the aws sdk in play framework?

查看:80
本文介绍了如何在Play框架中安装AWS SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以安装类似libraryDependencies ++= Seq( javaJdbc , cache , javaWs, "com.amazonaws" % "aws-java-sdk" % "1.11.38" )

I know that I can install a dependency like this libraryDependencies ++= Seq( javaJdbc , cache , javaWs, "com.amazonaws" % "aws-java-sdk" % "1.11.38" )

但是这种方法的问题是它将安装所有不必要的依赖项.我只想使用BOM方法安装 docs 中提到的一个特定依赖项.我该如何在Play框架中做到这一点?

but the problem with this approach is that it will install all the unnecessary dependencies. I just want to install one specific dependency as mentioned in the docs using the BOM way. How can i do that in play framework?

推荐答案

您可以单独安装aws-sdk-core和其余所需的模块.

You can install the aws-sdk-core and rest of the required modules individually.

libraryDependencies ++= Seq( javaJdbc ,  cache , javaWs,  
"com.amazonaws" % "aws-java-sdk-core" % "1.11.43",
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.43"
)

以此类推.

这篇关于如何在Play框架中安装AWS SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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