haji8-thehaji / lecture-java

https://url.kr/elsyz2
0 stars 2 forks source link

2024-10-11 자바 + 스프링 부트 #8

Open haji8-thehaji opened 2 months ago

haji8-thehaji commented 4 weeks ago

https://github.com/haji8-thehaji/lecture-java/tree/main/download/java-spring-boot/project/spring-beginner

haji8-thehaji commented 4 weeks ago

https://github.com/haji8-thehaji/lecture-java/tree/main/download/java-spring-boot/agron_test/thymeleaf_test

DB 연결

haji8-thehaji commented 4 weeks ago

schema.sql

DROP TABLE lemp IF EXISTS;

CREATE TABLE lemp (
  id VARCHAR(5),
  lemp_state VARCHAR(40)
);
haji8-thehaji commented 4 weeks ago

data.sql

INSERT INTO lemp(id,lemp_state) VALUES('1','on');
INSERT INTO lemp(id,lemp_state) VALUES('2','on');
INSERT INTO lemp(id,lemp_state) VALUES('3','on');
INSERT INTO lemp(id,lemp_state) VALUES('4','off');