@@ -358,26 +358,28 @@ Here is a typical layout:
358
358
----
359
359
com
360
360
+- example
361
- +- myproject
361
+ +- myapplication
362
362
+- Application.java
363
363
|
364
- +- domain
364
+ +- customer
365
365
| +- Customer.java
366
- | +- CustomerRepository.java
367
- |
368
- +- service
366
+ | +- CustomerController.java
369
367
| +- CustomerService.java
368
+ | +- CustomerRepository.java
370
369
|
371
- +- web
372
- +- CustomerController.java
370
+ +- order
371
+ +- Order.java
372
+ +- OrderController.java
373
+ +- OrderService.java
374
+ +- OrderRepository.java
373
375
----
374
376
375
377
The `Application.java` file would declare the `main` method, along with the basic
376
378
`@Configuration`.
377
379
378
380
[source,java,indent=0]
379
381
----
380
- package com.example.myproject ;
382
+ package com.example.myapplication ;
381
383
382
384
import org.springframework.boot.SpringApplication;
383
385
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -551,7 +553,7 @@ The `@SpringBootApplication` annotation is equivalent to using `@Configuration`,
551
553
552
554
[source,java,indent=0]
553
555
----
554
- package com.example.myproject ;
556
+ package com.example.myapplication ;
555
557
556
558
import org.springframework.boot.SpringApplication;
557
559
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -608,7 +610,7 @@ run your application using `java -jar`. For example:
608
610
609
611
[indent=0,subs="attributes"]
610
612
----
611
- $ java -jar target/myproject -0.0.1-SNAPSHOT.jar
613
+ $ java -jar target/myapplication -0.0.1-SNAPSHOT.jar
612
614
----
613
615
614
616
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
619
[indent=0,subs="attributes"]
618
620
----
619
621
$ 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
621
623
----
622
624
623
625
0 commit comments