Skip to content

Commit c536af0

Browse files
committed
Merge pull request #9907 from renjithgr:9886
* pr/9907: Polish "Update application layout to show packaging by features" Update application layout to show packaging by features
2 parents 691d669 + 474df8b commit c536af0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -358,26 +358,28 @@ Here is a typical layout:
358358
----
359359
com
360360
+- example
361-
+- myproject
361+
+- myapplication
362362
+- Application.java
363363
|
364-
+- domain
364+
+- customer
365365
| +- Customer.java
366-
| +- CustomerRepository.java
367-
|
368-
+- service
366+
| +- CustomerController.java
369367
| +- CustomerService.java
368+
| +- CustomerRepository.java
370369
|
371-
+- web
372-
+- CustomerController.java
370+
+- order
371+
+- Order.java
372+
+- OrderController.java
373+
+- OrderService.java
374+
+- OrderRepository.java
373375
----
374376

375377
The `Application.java` file would declare the `main` method, along with the basic
376378
`@Configuration`.
377379

378380
[source,java,indent=0]
379381
----
380-
package com.example.myproject;
382+
package com.example.myapplication;
381383
382384
import org.springframework.boot.SpringApplication;
383385
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -551,7 +553,7 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`,
551553

552554
[source,java,indent=0]
553555
----
554-
package com.example.myproject;
556+
package com.example.myapplication;
555557
556558
import org.springframework.boot.SpringApplication;
557559
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -608,7 +610,7 @@ run your application using `java -jar`. For example:
608610

609611
[indent=0,subs="attributes"]
610612
----
611-
$ java -jar target/myproject-0.0.1-SNAPSHOT.jar
613+
$ java -jar target/myapplication-0.0.1-SNAPSHOT.jar
612614
----
613615

614616
It is also possible to run a packaged application with remote debugging support enabled.
@@ -617,7 +619,7 @@ This allows you to attach a debugger to your packaged application:
617619
[indent=0,subs="attributes"]
618620
----
619621
$ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \
620-
-jar target/myproject-0.0.1-SNAPSHOT.jar
622+
-jar target/myapplication-0.0.1-SNAPSHOT.jar
621623
----
622624

623625

0 commit comments

Comments
 (0)