我在哪里可以找到@Inject罐子 [英] Where I can find @Inject jar

查看:158
本文介绍了我在哪里可以找到@Inject罐子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从如下<一个MVC的单元测试说明href=\"http://www.scarba05.co.uk/blog/2010/03/integration-testing-of-springs-mvc-annotation-mapppings-for-controllers/\">this网站,
但我无法找到该 @Inject 标注的罐子。有谁知道在哪里的jar?

I'm following the MVC unit test instructions from this site, but I cannot find the jar for the @Inject annotation. Does anybody know where the jar is?

推荐答案

通过Maven的:

<dependency>
  <groupId>javax.inject</groupId>
  <artifactId>javax.inject</artifactId>
  <version>1</version>
</dependency>

或从项目的主页: HTTP://$c$c.google.com/p/atinject /

此外,这个MvnRepository.com页面提供了必要的配置进行其他的构建工具,如常春藤,摇篮等。

Also, this MvnRepository.com page provides the necessary configurations for other build tools like Ivy, Gradle etc.

这篇关于我在哪里可以找到@Inject罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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