REST with Java(JAX-RS) using Jersey.
- Java 8
- Jersey
- JPA (Hibernate)
- MySQL
- Maven
You should create MySQL user and database url (or schema) appropriate to persistence.xml file. In order to do it run sql scripts below:
- For creating user:
CREATE USER 'library-rest-crud'@'localhost' IDENTIFIED BY 'restcrud';
GRANT ALL PRIVILEGES ON * . * TO 'library-rest-crud'@'localhost';
- For creating database:
CREATE DATABASE IF NOT EXISTS my_library;