Просмотр исходного кода

Add parameters for generating doc links

Roy Clarkson 13 лет назад
Родитель
Сommit
09b6ede7d5
2 измененных файлов: 14 добавлений и 12 удалений
  1. 9
    7
      README.ftl.md
  2. 5
    5
      README.md

+ 9
- 7
README.ftl.md Просмотреть файл

@@ -1,4 +1,6 @@
1 1
 <#assign project_id="gs-rest-service">
2
+<#assign spring_version="3.2.4.RELEASE">
3
+<#assign spring_boot_version="0.5.0.BUILD-SNAPSHOT">
2 4
 This guide walks you through the process of creating a "hello world" [RESTful web service][u-rest] with Spring.
3 5
 
4 6
 What you'll build
@@ -160,10 +162,10 @@ Congratulations! You've just developed a RESTful web service with Spring.
160 162
 <@u_war/>
161 163
 <@u_tomcat/>
162 164
 <@u_application_context/>
163
-[`@Controller`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/stereotype/Controller.html
164
-[`SpringApplication`]: http://static.springsource.org/spring-bootstrap/docs/0.5.0.BUILD-SNAPSHOT/javadoc-api/org/springframework/bootstrap/SpringApplication.html
165
-[`@EnableAutoConfiguration`]: http://static.springsource.org/spring-bootstrap/docs/0.5.0.BUILD-SNAPSHOT/javadoc-api/org/springframework/bootstrap/context/annotation/SpringApplication.html
166
-[`@Component`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/stereotype/Component.html
167
-[`@ResponseBody`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/ResponseBody.html
168
-[`MappingJackson2HttpMessageConverter`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.html
169
-[`DispatcherServlet`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/servlet/DispatcherServlet.html
165
+[`@Controller`]: http://static.springsource.org/spring/docs/${spring_version}/javadoc-api/org/springframework/stereotype/Controller.html
166
+[`SpringApplication`]: http://static.springsource.org/spring-bootstrap/docs/${spring_boot_version}/javadoc-api/org/springframework/bootstrap/SpringApplication.html
167
+[`@EnableAutoConfiguration`]: http://static.springsource.org/spring-bootstrap/docs/${spring_boot_version}/javadoc-api/org/springframework/bootstrap/context/annotation/SpringApplication.html
168
+[`@Component`]: http://static.springsource.org/spring/docs/${spring_version}/javadoc-api/org/springframework/stereotype/Component.html
169
+[`@ResponseBody`]: http://static.springsource.org/spring/docs/${spring_version}/javadoc-api/org/springframework/web/bind/annotation/ResponseBody.html
170
+[`MappingJackson2HttpMessageConverter`]: http://static.springsource.org/spring/docs/${spring_version}/javadoc-api/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.html
171
+[`DispatcherServlet`]: http://static.springsource.org/spring/docs/${spring_version}/javadoc-api/org/springframework/web/servlet/DispatcherServlet.html

+ 5
- 5
README.md Просмотреть файл

@@ -327,10 +327,10 @@ Congratulations! You've just developed a RESTful web service with Spring.
327 327
 [u-war]: /understanding/WAR
328 328
 [u-tomcat]: /understanding/Tomcat
329 329
 [u-application-context]: /understanding/application-context
330
-[`@Controller`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/stereotype/Controller.html
330
+[`@Controller`]: http://static.springsource.org/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/stereotype/Controller.html
331 331
 [`SpringApplication`]: http://static.springsource.org/spring-bootstrap/docs/0.5.0.BUILD-SNAPSHOT/javadoc-api/org/springframework/bootstrap/SpringApplication.html
332 332
 [`@EnableAutoConfiguration`]: http://static.springsource.org/spring-bootstrap/docs/0.5.0.BUILD-SNAPSHOT/javadoc-api/org/springframework/bootstrap/context/annotation/SpringApplication.html
333
-[`@Component`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/stereotype/Component.html
334
-[`@ResponseBody`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/ResponseBody.html
335
-[`MappingJackson2HttpMessageConverter`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.html
336
-[`DispatcherServlet`]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/servlet/DispatcherServlet.html
333
+[`@Component`]: http://static.springsource.org/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/stereotype/Component.html
334
+[`@ResponseBody`]: http://static.springsource.org/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/web/bind/annotation/ResponseBody.html
335
+[`MappingJackson2HttpMessageConverter`]: http://static.springsource.org/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.html
336
+[`DispatcherServlet`]: http://static.springsource.org/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/web/servlet/DispatcherServlet.html