|
|
@@ -43,21 +43,21 @@ The `name` parameter value overrides the default value of "World" and is reflect
|
|
43
|
43
|
|
|
44
|
44
|
== What you'll need
|
|
45
|
45
|
|
|
46
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
|
|
|
46
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
|
|
47
|
47
|
|
|
48
|
48
|
|
|
49
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]
|
|
|
49
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]
|
|
50
|
50
|
|
|
51
|
51
|
|
|
52
|
52
|
[[scratch]]
|
|
53
|
53
|
== Set up the project
|
|
54
|
54
|
|
|
55
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_system_intro.adoc[]
|
|
|
55
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_system_intro.adoc[]
|
|
56
|
56
|
|
|
57
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/create_directory_structure_hello.adoc[]
|
|
|
57
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/create_directory_structure_hello.adoc[]
|
|
58
|
58
|
|
|
59
|
59
|
|
|
60
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/create_both_builds.adoc[]
|
|
|
60
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/create_both_builds.adoc[]
|
|
61
|
61
|
`build.gradle`
|
|
62
|
62
|
// AsciiDoc source formatting doesn't support groovy, so using java instead
|
|
63
|
63
|
[source,java]
|
|
|
@@ -65,7 +65,7 @@ include::https://raw.github.com/spring-guides/getting-started-macros/master/crea
|
|
65
|
65
|
include::initial/build.gradle[]
|
|
66
|
66
|
----
|
|
67
|
67
|
|
|
68
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/spring-boot-gradle-plugin.adoc[]
|
|
|
68
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/spring-boot-gradle-plugin.adoc[]
|
|
69
|
69
|
|
|
70
|
70
|
|
|
71
|
71
|
[[initial]]
|
|
|
@@ -144,12 +144,12 @@ The `@ComponentScan` annotation tells Spring to search recursively through the `
|
|
144
|
144
|
|
|
145
|
145
|
The http://docs.spring.io/spring-boot/docs/{spring_boot_version}/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html[`@EnableAutoConfiguration`] annotation switches on reasonable default behaviors based on the content of your classpath. For example, because the application depends on the embeddable version of Tomcat (tomcat-embed-core.jar), a Tomcat server is set up and configured with reasonable defaults on your behalf. And because the application also depends on Spring MVC (spring-webmvc.jar), a Spring MVC http://docs.spring.io/spring/docs/{spring_version}/javadoc-api/org/springframework/web/servlet/DispatcherServlet.html[`DispatcherServlet`] is configured and registered for you — no `web.xml` necessary! Auto-configuration is a powerful, flexible mechanism. See the http://docs.spring.io/spring-boot/docs/{spring_boot_version}/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html[API documentation] for further details.
|
|
146
|
146
|
|
|
147
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[]
|
|
|
147
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[]
|
|
148
|
148
|
|
|
149
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_an_executable_jar_with_both.adoc[]
|
|
|
149
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_with_both.adoc[]
|
|
150
|
150
|
|
|
151
|
151
|
:module: service
|
|
152
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/run_the_application_with_both.adoc[]
|
|
|
152
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/run_the_application_with_both.adoc[]
|
|
153
|
153
|
|
|
154
|
154
|
Logging output is displayed. The service should be up and running within a few seconds.
|
|
155
|
155
|
|