Skip to content

Commit

Permalink
Add link to and code of RestServiceApplication.java to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
dloetzke authored and Buzzardo committed Dec 11, 2023
1 parent aead5a3 commit 2860fa6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ https://github.com/FasterXML/jackson[Jackson 2] is on the classpath, Spring's
https://docs.spring.io/spring/docs/{spring_version}/javadoc-api/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.html[`MappingJackson2HttpMessageConverter`]
is automatically chosen to convert the `Greeting` instance to JSON.

== Run the Service

The Spring Initializr creates an application class for you. In this case, you do not need
to further modify the class. The following listing
(from src/main/java/com/example/restservice/RestServiceApplication.java) shows the
application class:

====
[source,java]
----
include::complete/src/main/java/com/example/restservice/RestServiceApplication.java[]
----
====

include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/main/spring-boot-application-new-path.adoc[]

include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/main/build_an_executable_jar_subhead.adoc[]
Expand Down

0 comments on commit 2860fa6

Please sign in to comment.