Version Catalog 방식 설정 SpringBoot 3.4.5java 17 Version Catalog은 중앙 버전 관리 방식으로 Gradle 프로젝트의 규모가 커질수록 그 장점이 더욱 두드러지며, 효율적인 의존성 관리를 최적화 할 수 있다. Version Catalog을 구성하기 위해선 4개의 파일이 필요하다 gradle/libs.versions.tomlbuild.gradle.ktsgradle.propertiessettings.gradle.kts gradle/libs.versions.toml[versions]kotlin = "1.9.22"springBoot = "3.4.5"jackson = "2.17.0"[libraries]spring-boot-starter-web = { module = "..
public class PageInfo { //총 개수 private int total; //현재페이지 private int currentPage; //페이지 수 private int totalPages; //네비 첫 페이지 private int navFirstPage; //네비 마지막 페이지 private int navLastPage; //이전 페이지 private int prevPage; //다음 페이지 private int nextPage; //네비게이션 private int[] pageList; //첫 페이지인지 private boolean isFirstPage; //첫 네비인지 private boolean isFirstNavPage; //마지막 페이지인지 private boolean isLast..
const pageInfo = class{ constructor( pageLength = 5, navLength = 10) { this.pageLength = pageLength; this.navLength = navLength; } getPageInfo(){ this.totalPages = Math.ceil(this.total / this.pageLength); this.prevPage = this.currentPage - 1 > 0 ? this.currentPage > this.totalPages ? null : this.currentPage - 1 : null; this.nextPage = this.currentPage ..
Entity@Data@Entity@Table(name="member")public class User { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq") @SequenceGenerator(name = "seq", sequenceName = "seq", allocationSize = 1) private Long id; private String username; private String name; private String password; private String role; private LocalDateTime regdate;} UserDetailspublic class..