Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#65 Add some MySQL documentation #87

Merged
merged 2 commits into from
Sep 23, 2018

Conversation

arey
Copy link
Member

@arey arey commented Aug 24, 2018

Remove some old txt files and put all the documentation into the readme.md
This PR required the changes spring-petclinic/spring-petclinic-microservices-config@0361c87 into the Config Repository.
A spring mysql profile has been added.

On my laptop, MySQL use is working when I start microservices at command line or through my IDE.
With Docker, the connection with the jdbc:mysql://localhost:3306/petclinic?useSSL=false fails. I suppose localhost is not known by docker. Maybe we have to add an optional mysql database into the docker-compose file.

README.md Outdated
Note that whenever the database type is changed, the data-access.properties file needs to be updated and the mysql-connector-java artifact from the pom.xml needs to be uncommented.
In its default configuration, Petclinic uses an in-memory database (HSQLDB) which gets populated at startup with data.
A similar setup is provided for MySql in case a persistent database configuration is needed.
Dependency for Connector/J, the MySQL JDBC driver is already included in the `dpom.xml` files.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: dpom -> pom

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

README.md Outdated
### Use the Spring 'mysql' profile

To use a MySQL database, you have to start 3 microservices (`visits-service`, `customers-service` and `vets-services`)
with the `mysql` Spring profile. Add the `--spring.profiles.active=mysql`` as programm argument.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`` -> `

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix. Thanks for the review.

@mszarlinski mszarlinski merged commit 4be40de into spring-petclinic:master Sep 23, 2018
@arey arey deleted the feature/mysql branch February 17, 2019 20:50
talha-01 pushed a commit to talha-01/microservices-ci-cd-pipeline-with-petclinic-app that referenced this pull request Nov 13, 2020
* spring-petclinic#65 Add some MySQL documentation

* spring-petclinic#65 Add some MySQL documentation : fixing typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants