Skip to content
Snippets Groups Projects
Commit dae0ea18 authored by Rhys Evans's avatar Rhys Evans
Browse files

Trying to get sql to work, mock databases work here, not sure why, pair...

Trying to get sql to work, mock databases work here, not sure why, pair programming/ code review dev RN PO RE
parent da39e39e
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// implementation 'org.springframework.boot:spring-boot-starter-jdbc'
// implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
}
tasks.named('bootBuildImage') {
......
File added
spring.datasource.url=jdbc:mariadb://localhost:3306/rhys
spring.datasource.username=root
spring.datasource.password=comsc
spring.sql.init.mode=always
delete from rhys;
insert into rhys (name, tel_number) values ( 'Ian', '111');
\ No newline at end of file
drop table if exists rhys;
create table if not exists rhys (
id bigint auto_increment primary key,
name varchar(128),
tel_number varchar(128)
) engine=InnoDB;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment