본문 바로가기

전체 글251

카카오, Github 소셜 로그인 build.gradle plugins { id 'org.springframework.boot' version '2.4.2' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'kr.revfactory' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-ac.. 2021. 1. 19.
Angular + Scully 로 JAM Stack 맛보기 Angular CLI 로 프로젝트 생성 $ ng new jamstack-example - 엄격한 유형검사 : y - Angular routing 사용 : y - Stylesheet Format : SCSS (CSS 도 상관없음) 콘솔에서 실행 $ cd jamstatck-example jamstatck-example$ ng serve IntelliJ 에서 실행시 Material 모듈 추가 jamstack-example$ ng add @angular/material - Browser Animation : no Scully 모듈 추가 jamstack-example$ ng add @scullyio/init Navi 컴포넌트 추가 jamstack-example$ ng g @angular/material:nav m.. 2021. 1. 15.
PowerShell 에서 Angular Cli가 안될때 The term 'ng' is not recognized as the name of a cmdlet 'ng' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다. (the term 'ng' is not recognized as an internal or external command, operable program or batch file.) 1. Windows PowerShell 실행 정책 변경 Windows PowerShell 실행 정책을 사용하면 Windows PowerShell이 ​​구성 파일을로드하고 스크립트를 실행하는 조건을 결정할 수 있습니다. 실행 정책 유형 : Restricted** -로컬, 원격 또는 다운로드 스크립트는 시스템에서 실행할 .. 2021. 1. 15.
Windows10에서 Docker 와 Kubernetes 설치하기 1. Dockerhub 사이트에 접속합니다. hub.docker.com/editions/community/docker-ce-desktop-windows Docker Desktop for Windows - Docker Hub Docker Desktop for Windows Docker Desktop for Windows is Docker designed to run on Windows 10. It is a native Windows application that provides an easy-to-use development environment for building, shipping, and running dockerized apps. Docker Desktop for W hub.docker.com 2.. 2020. 12. 17.
상속 관계에서 Lombok Builder 사용 public enum AdAccountType { BUSINESS, INDIVIDUAL } @Getter @ToString @AllArgsConstructor public class AdAccountTO { private Long id; private String name; private AdAccountType adAccountType; } @Getter @ToString(callSuper = true) public class BusinessAdAccountTO extends AdAccountTO { private String companyName; @Builder private BusinessAdAccountTO(Long id, String name, String companyName) { super.. 2019. 10. 6.
Spring boot 2.2 지연 초기화 Spring boot 2.2에 추가된 기능 중 Spring Bean 을 지연 로딩하는 Lazy Initialization이 포함되었습니다. 2.2 이전에도 Lazy로딩이 가능하기 했으나 이번 업데이트로 간편하게 설정할 수 있도록 변경되었습니다. 일반적으로는 Spring Boot 애플리케이션을 시작할때, 모든 Bean이 로딩되기 때문에 문제가 있을 경우 에러를 내고 애플리케이션이 실행되지 않습니다. 또한 모든 Bean이 로딩되는 시간이 프로젝트 초기에는 크게 문제를 못 느끼지만 프로젝트 규모가 커질 수록 애플리케이션이 무거워져 시작하는데 한참 걸리게 됩니다. 프로퍼티 설정에 아래와 같이 추가합니다. application.yaml spring: main: lazy-initialization: true 지연 .. 2019. 10. 6.