mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
Polish "Add documentation for IntelliJ IDEA"
Closes gh-358
This commit is contained in:
parent
6de956210e
commit
8bee2f888d
1 changed files with 13 additions and 8 deletions
21
readme.md
21
readme.md
|
@ -48,12 +48,12 @@ The following items should be installed in your system:
|
|||
* git command line tool (https://help.github.com/articles/set-up-git)
|
||||
* Your prefered IDE
|
||||
* Eclipse with the m2e plugin. Note: when m2e is available, there is an m2 icon in Help -> About dialog. If m2e is not there, just follow the install process here: http://www.eclipse.org/m2e/
|
||||
* or [Spring Tools Suite](https://spring.io/tools) (STS)
|
||||
* or IntelliJ IDEA
|
||||
* [Spring Tools Suite](https://spring.io/tools) (STS)
|
||||
* IntelliJ IDEA
|
||||
|
||||
### Steps:
|
||||
|
||||
1) In the command line
|
||||
1) On the command line
|
||||
```
|
||||
git clone https://github.com/spring-projects/spring-petclinic.git
|
||||
```
|
||||
|
@ -62,13 +62,18 @@ git clone https://github.com/spring-projects/spring-petclinic.git
|
|||
File -> Import -> Maven -> Existing Maven project
|
||||
```
|
||||
|
||||
Then either build on the command line `./mvnw install` or using the Eclipse launcher (right click on project and `Run As -> Maven install`) to generate the css. Run the application main method by right clicking on it and choosing `Run As -> Java Application`.
|
||||
Then either build on the command line `./mvnw generate-resources` or using the Eclipse launcher (right click on project and `Run As -> Maven install`) to generate the css. Run the application main method by right clicking on it and choosing `Run As -> Java Application`.
|
||||
|
||||
3) Or inside IntelliJ IDEA
|
||||
3) Inside IntelliJ IDEA
|
||||
|
||||
On the main menu, select `File -> Open`. Select the Petclinic [pom.xml](pom.xml). Click on the `Open as Project` button.
|
||||
Then either build on the command line `./mvnw install` or right click on the `spring-petclinic` project then `Maven -> Generates sources and Update Folders` to generate the CSS.
|
||||
Run the application by right clicking on the `PetClinicApplication` main class and choosing `Run 'PetClinicApplication'`.
|
||||
In the main menu, choose `File -> Open` and select the Petclinic [pom.xml](pom.xml). Click on the `Open` button.
|
||||
|
||||
CSS files are generated from the Maven build. You can either build them on the command line `./mvnw generate-resources`
|
||||
or right click on the `spring-petclinic` project then `Maven -> Generates sources and Update Folders`.
|
||||
|
||||
A run configuration named `PetClinicApplication` should have been created for you if you're using a recent Ultimate
|
||||
version. Otherwise, run the application by right clicking on the `PetClinicApplication` main class and choosing
|
||||
`Run 'PetClinicApplication'`.
|
||||
|
||||
4) Navigate to Petclinic
|
||||
|
||||
|
|
Loading…
Reference in a new issue