mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Fix package declaration of sample in reference docs
Update the "Developing Your First Spring Boot Application" sample so that the package is not removed. Closes gh-34513
This commit is contained in:
parent
7c73a034b6
commit
61dbf45628
@ -137,6 +137,7 @@ If you run `mvn dependency:tree` again, you see that there are now a number of a
|
|||||||
To finish our application, we need to create a single Java file.
|
To finish our application, we need to create a single Java file.
|
||||||
By default, Maven compiles sources from `src/main/java`, so you need to create that directory structure and then add a file named `src/main/java/MyApplication.java` to contain the following code:
|
By default, Maven compiles sources from `src/main/java`, so you need to create that directory structure and then add a file named `src/main/java/MyApplication.java` to contain the following code:
|
||||||
|
|
||||||
|
[chomp_package_replacement=com.example]
|
||||||
include::code:MyApplication[]
|
include::code:MyApplication[]
|
||||||
|
|
||||||
Although there is not much code here, quite a lot is going on.
|
Although there is not much code here, quite a lot is going on.
|
||||||
|
Loading…
Reference in New Issue
Block a user