|
@@ -33,21 +33,21 @@ You'll build a server that will accept a message carrying a user's name. In resp
|
|
|
== What you'll need
|
|
|
|
|
|
:java_version: 1.7
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/prereq_editor_jdk_buildtools.adoc[]
|
|
|
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/how_to_complete_this_guide.adoc[]
|
|
|
|
|
|
|
|
|
[[scratch]]
|
|
|
== Set up the project
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_system_intro.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_system_intro.adoc[]
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/create_directory_structure_hello.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/create_directory_structure_hello.adoc[]
|
|
|
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/create_both_builds.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/create_both_builds.adoc[]
|
|
|
|
|
|
`build.gradle`
|
|
|
// AsciiDoc source formatting doesn't support groovy, so using java instead
|
|
@@ -56,7 +56,7 @@ include::https://raw.github.com/spring-guides/getting-started-macros/master/crea
|
|
|
include::initial/build.gradle[]
|
|
|
----
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/spring-boot-gradle-plugin.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/spring-boot-gradle-plugin.adoc[]
|
|
|
|
|
|
|
|
|
[[initial]]
|
|
@@ -182,12 +182,12 @@ The `@ComponentScan` annotation tells Spring to search recursively through the `
|
|
|
|
|
|
The {EnableAutoConfiguration}[`@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 {DispatcherServlet}[`DispatcherServlet`] is configured and registered for you — no `web.xml` necessary! Auto-configuration is a powerful, flexible mechanism. See the {EnableAutoConfiguration}[API documentation] for further details.
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[]
|
|
|
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/build_an_executable_jar_with_both.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_with_both.adoc[]
|
|
|
|
|
|
:module: service
|
|
|
-include::https://raw.github.com/spring-guides/getting-started-macros/master/run_the_application_with_both.adoc[]
|
|
|
+include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/run_the_application_with_both.adoc[]
|
|
|
|
|
|
Logging output is displayed. The service should be up and running within a few seconds.
|
|
|
|