- User can get Books
- Get book by Id
- Add Books
- Update Book
- Delete Book
- Java
- SpringBoot
- Rest API
- Hibernate Jpa
- Mysql
- Tomcat
- Maven
- You can clone this repo and start the serve on localhost
- Before running the API server, we should update the database config inside the application.properties file.
- Update the port number, username and password as per our local database config.
server.port=9091
spring.datasource.name=d1
spring.datasource.url=jdbc:mysql://localhost:3306/book_db
spring.datasource.username=root
spring.datasource.password=root123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect