From f948a46954128e6a591be9dd229c6655e0867c9a Mon Sep 17 00:00:00 2001 From: Renjith G R Date: Sun, 30 Jul 2017 01:40:19 +0530 Subject: [PATCH 1/2] Update application layout to show packaging by features See gh-9907 --- .../src/main/asciidoc/using-spring-boot.adoc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 2083888b9b..60bc966970 100644 --- a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -358,18 +358,20 @@ Here is a typical layout: ---- com +- example - +- myproject + +- myapplication +- Application.java | - +- domain + +- customer | +- Customer.java + | +- CustomerController.java + | +- CustomerService.java | +- CustomerRepository.java | - +- service - | +- CustomerService.java - | - +- web - +- CustomerController.java + +- order + +- Order.java + +- OrderController.java + +- OrderService.java + +- OrderRepository.java ---- The `Application.java` file would declare the `main` method, along with the basic From 474df8b6d21c5cfa85b288c1017b333491200a43 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 18 Sep 2017 16:13:59 +0200 Subject: [PATCH 2/2] Polish "Update application layout to show packaging by features" Closes gh-9907 --- spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc index 60bc966970..31d1d799e8 100644 --- a/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc +++ b/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc @@ -379,7 +379,7 @@ The `Application.java` file would declare the `main` method, along with the basi [source,java,indent=0] ---- - package com.example.myproject; + package com.example.myapplication; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; @@ -553,7 +553,7 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`, [source,java,indent=0] ---- - package com.example.myproject; + package com.example.myapplication; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -610,7 +610,7 @@ run your application using `java -jar`. For example: [indent=0,subs="attributes"] ---- - $ java -jar target/myproject-0.0.1-SNAPSHOT.jar + $ java -jar target/myapplication-0.0.1-SNAPSHOT.jar ---- It is also possible to run a packaged application with remote debugging support enabled. @@ -619,7 +619,7 @@ This allows you to attach a debugger to your packaged application: [indent=0,subs="attributes"] ---- $ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \ - -jar target/myproject-0.0.1-SNAPSHOT.jar + -jar target/myapplication-0.0.1-SNAPSHOT.jar ----