- devtools
- spring web (mvc)
- mustache
- lombok
- jpa
- mariadb
- security
- validation
CREATE USER 'green'@'%' IDENTIFIED BY 'green1234';
CREATE DATABASE greendb;
GRANT ALL PRIVILEGES ON greendb.* TO 'green'@'%';
localhost:8080/ (메인페이지 - 글 있는 곳 아님)
localhost:8080/user/{userId}/post
localhost:8080/user/{userId}/post/{postId}
localhost:8080/user/{userId}/category/{title}
Visit
id
userId
totalCount
createDate
updateDate
User
id
username
password
createDate
updateDate
Post
id
title
content
thumnail
userId
categoryId
createDate
updateDate
Like
id
postId
userId
createDate
updateDate
Category
id
title
userId
createDate
updateDate
- 단위테스트 - API 문서 자동생성
- AOP 처리
- 배포
- firebase fcm
- 글수정 (직접)
- 회원정보 수정 (직접)
'''txt ./gradlew --refresh-dependencie '''
-- currentPage, totalPages
SELECT TRUE last FROM dual;
SELECT
true LAST,
false FIRST,
3 size,
0 currentPage,
(SELECT COUNT(*) FROM post WHERE userId = 1) totalCount,
(SELECT CEIL(COUNT(*)/3) FROM post WHERE userId = 1) totalPages,
p.*
FROM post p
ORDER BY p.id DESC
LIMIT 0, 3;
-- LIMIT (0*3), 3;