From d0b22b3b08a90d771f81e1f6bff04bfabf7a1f5b Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Mon, 9 Mar 2015 23:17:45 +0800 Subject: [PATCH] =?UTF-8?q?Update=2055.1.2.=20Deduced=20=E2=80=9Cgrab?= =?UTF-8?q?=E2=80=9D=20coordinates.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VII. Spring Boot CLI/55.1.2. Deduced “grab” coordinates.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VII. Spring Boot CLI/55.1.2. Deduced “grab” coordinates.md b/VII. Spring Boot CLI/55.1.2. Deduced “grab” coordinates.md index e69de29..145d11c 100644 --- a/VII. Spring Boot CLI/55.1.2. Deduced “grab” coordinates.md +++ b/VII. Spring Boot CLI/55.1.2. Deduced “grab” coordinates.md @@ -0,0 +1,4 @@ +### 55.1.2. 推断"grab"坐标 + +Spring Boot扩展Groovy标准"@Grab"注解使其能够允许你指定一个没有group或version的依赖,例如`@Grab('freemarker')`。 +artifact’s的组和版本是通过查看Spring Boot的依赖元数据推断出来的。注意默认的元数据是和你使用的CLI版本绑定的-只有在你迁移到一个CLI新版本时它才会改变,这样当你的依赖改变时你就可以控制了。在[附录](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#appendix-dependency-versions)的表格中可以查看默认元数据包含的依赖和它们的版本。