나만의 개발 기록
close
프로필 배경
프로필 로고

나만의 개발 기록

  • 분류 전체보기 (275) N
    • backend (2)
      • 스프링 (91)
      • 코프링 (14)
      • 자바 (33)
      • 오류모음 (2)
    • frontend (33)
      • Javascript (14)
      • Jstl (2)
      • Vue (6)
      • 타임리프 (5)
      • React (4)
      • Typescript (1)
    • 데이터베이스 (4)
      • MYSQL (4)
    • native (16)
      • 안드로이드 (16)
    • DevOps (14)
      • AWS (4)
      • 젠킨스 (2)
      • Docker (2)
      • 깃허브 (1)
    • gis (26)
      • Openlayers (4)
      • LeafletJs (19)
      • 지오서버 (3)
    • 기타 (1) N
      • 소프트웨어 설치 (9)
      • 자격증 (3)
      • 개발용어 (17)
    • 부동산 (0)
  • 홈
  • 태그
  • 방명록
[코프링] 5. Spring Jpa Auditing 적용

[코프링] 5. Spring Jpa Auditing 적용

audit란?엔터티(Entity)의 생성 및 변경 이력을 자동으로 감지. 이를 통해 데이터 변경 내역을 자동으로 기록할 수 있고, 수동으로 createdAt, updatedAt 등을 설정할 필요가 없음 예제package com.contact.management.entityimport jakarta.persistence.*import org.springframework.data.annotation.CreatedByimport org.springframework.data.annotation.CreatedDateimport org.springframework.data.annotation.LastModifiedByimport org.springframework.data.annotation.LastModified..

  • format_list_bulleted backend/코프링
  • · 2025. 2. 7.
  • textsms
[코프링] 4. @Valid를 사용한 REST API validation 처리

[코프링] 4. @Valid를 사용한 REST API validation 처리

의존성 추가build.gradle dependencies 안에 아래 코드 추가implementation("org.springframework.boot:spring-boot-starter-validation") build.gradle.ktplugins { id("org.springframework.boot") version "3.4.2" id("io.spring.dependency-management") version "1.1.7" id("java") id("org.jetbrains.kotlin.jvm") version "1.9.25" id("org.jetbrains.kotlin.plugin.jpa") version "1.9.25" id("org.jetbrains.kotlin.plugin.spring") ..

  • format_list_bulleted backend/코프링
  • · 2025. 2. 6.
  • textsms
[코프링] 3. GlobalException handler를 이용한 restApi 에러 처리

[코프링] 3. GlobalException handler를 이용한 restApi 에러 처리

프로젝트 구조   CommonException.ktpackage com.contact.management.exceptionclass CommonException(val exceptionCode: CommonExceptionCode) : RuntimeException()  CommonExceptionCode.ktpackage com.contact.management.exceptionimport org.springframework.http.HttpStatusenum class CommonExceptionCode( val status: HttpStatus, val message: String,) { USER_NOT_FOUND(HttpStatus.NOT_FOUND, "사용자를 찾을 수 없습니다...

  • format_list_bulleted backend/코프링
  • · 2025. 2. 5.
  • textsms
[코프링] 2. H2 데이터베이스 메모리 내 데이터베이스 설정

[코프링] 2. H2 데이터베이스 메모리 내 데이터베이스 설정

1. application.properties 파일 삭제후 application.yml 생성  2. h2 메모리 내 데이터베이스용으로 생성application.ymlspring: # H2 Console 설정 h2: console: enabled: true # H2 Console을 사용할지 여부 path: /h2-console # H2 Console의 접근 경로 # 데이터베이스 설정 datasource: driver-class-name: org.h2.Driver # H2 드라이버 사용 url: jdbc:h2:mem:management # 메모리 내 데이터베이스 (테스트용) username: sa # 접속할 사용자명 password: # 비밀번호..

  • format_list_bulleted backend/코프링
  • · 2025. 2. 3.
  • textsms
[코프링] 1. 프로젝트 생성

[코프링] 1. 프로젝트 생성

1. 해당사이트 접속후 Spring Web, H2 Database, Spring Boot Dev Tools, Spring Data Jpa를 추가합니다.이후 Generate를 클릭합니다.https://start.spring.io/   2. File - Project structure 클릭후 SDK가 선택한 JAVA로 선택되어있는지 확인후 변경합니다. 3. File - Settings - GradleBuild and run using, Run tests Using이 inteliJ IDEA로 선택을 합니다. build.gradleplugins { id("org.springframework.boot") version "3.4.2" id("io.spring.dependency-management") version..

  • format_list_bulleted backend/코프링
  • · 2025. 2. 3.
  • textsms
Spring boot 3.0 이상, 3.0이하 querydsl 설정 방법

Spring boot 3.0 이상, 3.0이하 querydsl 설정 방법

Spring boot 3.0 이상build.gradleplugins { id 'java' id 'org.springframework.boot' version '3.1.4' id 'io.spring.dependency-management' version '1.1.3'}group = 'study'version = '0.0.1-SNAPSHOT'java { sourceCompatibility = '17'}configurations { compileOnly { extendsFrom annotationProcessor }}repositories { mavenCentral()}dependencies { implementation 'org.springframework.boot:spring-boot-starter-da..

  • format_list_bulleted backend/스프링
  • · 2023. 9. 30.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ···
  • 24
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (275) N
    • backend (2)
      • 스프링 (91)
      • 코프링 (14)
      • 자바 (33)
      • 오류모음 (2)
    • frontend (33)
      • Javascript (14)
      • Jstl (2)
      • Vue (6)
      • 타임리프 (5)
      • React (4)
      • Typescript (1)
    • 데이터베이스 (4)
      • MYSQL (4)
    • native (16)
      • 안드로이드 (16)
    • DevOps (14)
      • AWS (4)
      • 젠킨스 (2)
      • Docker (2)
      • 깃허브 (1)
    • gis (26)
      • Openlayers (4)
      • LeafletJs (19)
      • 지오서버 (3)
    • 기타 (1) N
      • 소프트웨어 설치 (9)
      • 자격증 (3)
      • 개발용어 (17)
    • 부동산 (0)
최근 글
인기 글
최근 댓글
태그
  • #java
  • #useragent
  • #spring
  • #형변환
  • #Linux
  • #JavaScript
  • #jstl
  • #CentOS
  • #charAt
  • #AJAX
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바