November 2017
Intermediate to advanced
542 pages
14h 24m
English
We can now remove the src/main/resources/database directory and all contents in that directory. This directory contains several .sql files, and we will consolidate and move them to the next step:
Now, we need to create a data.sql file that will contain our seed data, as follows:
//src/main/resources/data.sql:
insert into calendar_users(id,username,email,password, first_name,last_name) values(0,'user1@example.com','user1@example.com', '$2a$04$qr7RWyqOnWWC1nwotUW1nOe1RD5. mKJVHK16WZy6v49pymu1WDHmi','User','1');
insert into calendar_users(id,username,email,password, ...
Read now
Unlock full access