getAllDatas _ desc

// getAllDatas
	public List<BoardDto> getAllDatas() {
		// return boardInter.findAll();
		return boardInter.findAll(Sort.by(Sort.Direction.DESC, "num"));
	}

yml 파일

application.properties → 확장자명 yml로 변경 (application.yml)

이미지 업로드

thymeleaf

templates 에서 home.html 파일 생성 → webapp 밑으로 내려가짐 → templates로 옮기기

<!DOCTYPE html>
<html xmlns:th="<https://www.thymeleaf.org/>">
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="<https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css>" />
<script src="<https://code.jquery.com/jquery-3.6.3.js>"></script>
</head>
<body>

</body>
</html>