Clone

    [Web Service Project] org.hibernate.tool.schema.spi.CommandAcceptanceException 해결

    org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL On trying to create the above entity I am getting CommandAcceptanceException and the table is not able to get created in the database, please tell me how to fix it. application.properties file stackoverflow.com 이 경우 보통 h2 데이터베이스가 실행이 안되어 있거나,..

    [Web Service Project] 3. SpringBoot & JPA로 간단 API 만들기(2)

    Project Structure API를 만들기 위한 클래스 Request 요청을 받는 Dto API 요청을 받는 Controller 트랜잭션, 도메인 간의 순서를 보장하는 Service Spring 웹 계층 Web Layer 컨트롤러, 뷰 템플릿 외부 요청과 응답에 대한 전반적인 영역 Service Layer @Service 컨트롤러와 Dao의 중간 영역 Transactionl 사용 영역 Repository Layer DB에 접근하는 영역 Dtos 계층 간 데이터를 교환하기 위한 객체들의 영역 Domain Model @Entity, VO 비즈니스 처리를 담당하는 곳 --> Domain 테스트 @WebMvcTest -> JPA 기능이 작동하지 않는다. 109p 코드를 그대로 쓰면 오류가 난다. -> 해결..

    [Web Service Project] 3. SpringBoot & JPA로 간단 API 만들기(1)

    3.1 JPA 소개 패러다임 불일치 관계형 데이터베이스 : 어떻게 데이터를 저장할지에 초점이 맞춰짐 객체지향 프로그래밍 : 기능과 속성을 한 곳에서 관리하는 기술 JPA 관계형 데이터베이스와 객체지향 프로그래밍을 중간에서 패러다임 일치를 시켜주는 기술 JPA

    [Web Service Project] 2. 테스트 코드 작성 & 롬복

    Directory Structure Application.java package com.jacklee.webservice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } 프로젝트 메인클래스 작성 package com.jacklee.webservice.web; import org.junit..

    [Web Service Project] 1. 프로젝트 생성하기

    개발 환경 - IDE : IntelliJ - Java 8 ( JDK 1.8 ) - Gradle 4.8 ~ Gradle 4.10.2 build.gradle의 코드가 어떠한 역할을 하는지, 이니셜라이저 이외에 추가로 의존성 추가가 필요하면 어떻게 해야 할지 등을 모르는 상태로 개발을 시작하는 경우가 있다. 아직 Springboot와 Gradle에 익숙하지 않기 때문에 하나씩 코드를 작성하면서 어떤 역할을 하는지 이해하기 위해 프로젝트 생성시 스프링 이니셜라이저를 통해서 진행하지 않겠습니다. plugins { id 'java' } group 'com.jacklee.webservice' version '1.0-SNAPSHOT' repositories { mavenCentral() } dependencies { ..