xml 파일의 사용 이유
: 수정이 용이하다.
erd는 설계가 아니라 분석 단계에 가까움
log.info
는 sysout 과 같은 역할 더 나음
ex4.html
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout1.html}">
<div layout:fragment="content">
<h1>ex4.html</h1>
</div>
<script layout:fragment="script" th:inline="javascript">
const arr=[[${arr}]]
</script>
layout1.html
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div>
<h3>Sample Layout Header</h3>
</div>
<div layout:fragment="content">
<p>Page content goes here</p>
</div>
<div>
<h3>Sample Layout Footer</h3>
</div>
<th:block layout:fragment="script">
</th:block>
</body>
</html>
static에서 불러다 쓰고 있는 것
redirect는 다른 페이지로 이동시켜주는 기능
삭제가 안돼서 골머리였는데 delete 메소드 넣어주고 경로가 잘못된 거였다!
'국비지원 > 백엔드' 카테고리의 다른 글
230215 JPA 시작 (0) | 2023.02.15 |
---|---|
230213 H2 Database 이용 (0) | 2023.02.13 |
230207 Spring - JUnit Test (0) | 2023.02.07 |
230203 Spring Boot + MyBatis 로 데이터베이스 연결 (0) | 2023.02.03 |
230130 JSP 예제 (0) | 2023.01.30 |