Commit c536af0b authored by Stephane Nicoll's avatar Stephane Nicoll

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
parents 691d669b 474df8b6
...@@ -358,18 +358,20 @@ Here is a typical layout: ...@@ -358,18 +358,20 @@ Here is a typical layout:
---- ----
com com
+- example +- example
+- myproject +- myapplication
+- Application.java +- Application.java
| |
+- domain +- customer
| +- Customer.java | +- Customer.java
| +- CustomerRepository.java | +- CustomerController.java
|
+- service
| +- CustomerService.java | +- CustomerService.java
| +- CustomerRepository.java
| |
+- web +- order
+- CustomerController.java +- Order.java
+- OrderController.java
+- OrderService.java
+- OrderRepository.java
---- ----
The `Application.java` file would declare the `main` method, along with the basic The `Application.java` file would declare the `main` method, along with the basic
...@@ -377,7 +379,7 @@ The `Application.java` file would declare the `main` method, along with the basi ...@@ -377,7 +379,7 @@ The `Application.java` file would declare the `main` method, along with the basi
[source,java,indent=0] [source,java,indent=0]
---- ----
package com.example.myproject; package com.example.myapplication;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
...@@ -551,7 +553,7 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`, ...@@ -551,7 +553,7 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`,
[source,java,indent=0] [source,java,indent=0]
---- ----
package com.example.myproject; package com.example.myapplication;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
...@@ -608,7 +610,7 @@ run your application using `java -jar`. For example: ...@@ -608,7 +610,7 @@ run your application using `java -jar`. For example:
[indent=0,subs="attributes"] [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. 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: ...@@ -617,7 +619,7 @@ This allows you to attach a debugger to your packaged application:
[indent=0,subs="attributes"] [indent=0,subs="attributes"]
---- ----
$ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \ $ 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
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment