mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
Updating spacing on step list
This commit is contained in:
parent
73ede82651
commit
d367e2b4b4
1 changed files with 12 additions and 17 deletions
29
readme.md
29
readme.md
|
@ -39,8 +39,7 @@ In its default configuration, Petclinic uses an in-memory database (H2) which
|
||||||
gets populated at startup with data. The h2 console is automatically exposed at `http://localhost:8080/h2-console`
|
gets populated at startup with data. The h2 console is automatically exposed at `http://localhost:8080/h2-console`
|
||||||
and it is possible to inspect the content of the database using the `jdbc:h2:mem:testdb` url.
|
and it is possible to inspect the content of the database using the `jdbc:h2:mem:testdb` url.
|
||||||
|
|
||||||
A similar setup is provided for MySql in case a persistent database configuration is needed.
|
A similar setup is provided for MySql in case a persistent database configuration is needed. Note that whenever the database type is changed, the app needs to be run with a different profile: `spring.profiles.active=mysql` for MySql.
|
||||||
Note that whenever the database type is changed, the app needs to be run with a different profile: `spring.profiles.active=mysql` for MySql.
|
|
||||||
|
|
||||||
You could start MySql locally with whatever installer works for your OS, or with docker:
|
You could start MySql locally with whatever installer works for your OS, or with docker:
|
||||||
|
|
||||||
|
@ -66,30 +65,26 @@ The following items should be installed in your system:
|
||||||
### Steps:
|
### Steps:
|
||||||
|
|
||||||
1) On the command line
|
1) On the command line
|
||||||
```
|
```
|
||||||
git clone https://github.com/spring-projects/spring-petclinic.git
|
git clone https://github.com/spring-projects/spring-petclinic.git
|
||||||
```
|
```
|
||||||
2) Inside Eclipse or STS
|
2) Inside Eclipse or STS
|
||||||
```
|
```
|
||||||
File -> Import -> Maven -> Existing Maven project
|
File -> Import -> Maven -> Existing Maven project
|
||||||
```
|
```
|
||||||
|
|
||||||
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`.
|
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) Inside IntelliJ IDEA
|
3) Inside IntelliJ IDEA
|
||||||
|
In the main menu, choose `File -> Open` and select the Petclinic [pom.xml](pom.xml). Click on the `Open` button.
|
||||||
|
|
||||||
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`.
|
||||||
|
|
||||||
CSS files are generated from the Maven build. You can either build them on the command line `./mvnw generate-resources`
|
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'`.
|
||||||
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
|
4) Navigate to Petclinic
|
||||||
|
|
||||||
Visit [http://localhost:8080](http://localhost:8080) in your browser.
|
Visit [http://localhost:8080](http://localhost:8080) in your browser.
|
||||||
|
|
||||||
|
|
||||||
## Looking for something in particular?
|
## Looking for something in particular?
|
||||||
|
|
Loading…
Reference in a new issue