사랑하애오
article thumbnail
[VSCODE] SpringBoot 쇼핑몰(MVN) Thymeleaf
JAVA/SpringBoot Shoppingmall 2022. 6. 24. 11:00

Thymeleaf 1. Thymeleaf 컨트롤러가 전달한 가공된 데이터를 이용하여 동적으로 화면을 구성하도록 지원하는 템플릿 엔진 https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html Tutorial: Using Thymeleaf 1 Introducing Thymeleaf 1.1 What is Thymeleaf? Thymeleaf is a modern server-side Java template engine for both web and standalone environments, capable of processing HTML, XML, JavaScript, CSS and even plain text. The main goal of Thy..

article thumbnail
[VSCODE] SpringBoot 쇼핑몰(MVN) Querydsl
JAVA/SpringBoot Shoppingmall 2022. 6. 24. 10:13

Querydsl 1. Querydsl SQL 쿼리문을 문자열이 아닌 소스코드로 작성하도록 지원하는 빌더 API (프레임워크) 2. Querydsl 의 장점 ① 고정된 SQL 문이아닌 조건에 맞게 동적으로 쿼리 생성 가능 ② 제약 조건 조립 및 가독성 향상 ③ 컴파일 시점에 오류를 발견할 수 있음 ④ 자동 완성 기능으로 인한 생산성 향상 3. Querydsl 의존성 주입 com.querydsl querydsl-jpa ${querydsl.version} com.querydsl querydsl-apt ${querydsl.version} 4. Qdomain 플러그인 추가 엔티티를 기반으로 접두사(prefix) 'Q'가 붙는 클래스를 자동으로 생성하는 플러그인 Querydsl 수행 시 엔티티가 아닌 Qdomain..

article thumbnail
[VSCODE] SpringBoot 쇼핑몰(MVN) 상품 Repository 설계
JAVA/SpringBoot Shoppingmall 2022. 6. 22. 13:17

Section 1. 상품 Repository 설계 1. Spring Data JPA Spring Data JPA 개념(링크달기) 2. 상품 Repository 생성 com.shop.repository.ItemRepository.java 생성 DAO 역할을 수행하는 Repository 인터페이스 JpaRepository 클래스 extends package com.shop.repository; import org.springframework.data.jpa.repository.JpaRepository; import com.shop.entity.Item; public interface ItemRepository extends JpaRepository { } 3. application-test.propertie..

article thumbnail
[VSCODE] SpringBoot 쇼핑몰(MVN) 개발 환경 설정
JAVA/SpringBoot Shoppingmall 2022. 6. 21. 14:08

Spring Boot Initializr Spring Boot 환경 구축 참고 (VSCODE, start(쓰니는 이거 안씀) OPEN_JDK(18)) Spring Initializr(maven) 에서 아래와 같이 설정 vscode springboot extension을 통해 빠르게 mvn 패키지를 생성할 수 있다. https://start.spring.io/ 위의 사이트를 통해서도 프로젝트를 생성할 수 있는데 압축파일을 풀고 열어야하는 약간의 번거로움이 있다. 프로젝트를 생성했으므로 생성한 프로젝트를 열어서 기본적인 세팅을 할 것인데 위와 같이 pom.xml에 아까 생성할때 넣었던 dependency들을 볼 수 있으며, 추후에 필요한 dependency를 pom.xml에 추가해 사용할 것이다. 이제 잘 ..

article thumbnail
VSCode Terminal CMD 변경 (PowerShell에서)
VSCode 2021. 12. 25. 22:39

VSCode의 터미널 default는 powershell로 설정되어 있습니다. (ctrl + ` ) 명령어로 터미널을 열수 있으며, 열리지 않으면 우측 상단에 Terminal > New Terminal 로 열 수 있습니다. Settings.json에서 직접 편집해서 변경하기 좌측 상단 또는 하단에 설정을 찾아 열어줍니다. 아무 거나 상관 없으니 settings.json을 찾아서 열어줍니다. 위와 같이 "terminal.integrated.shell.windows": "cmd.exe" 를 추가해줍니다.