[Spring Boot] TDD, Unit Test 보호되어 있는 글 입니다. 2021. 8. 3.
[Spring Boot] Main Class, 생성자 주입 보호되어 있는 글 입니다. 2021. 8. 3.
[Spring Boot] 빌드 도구 보호되어 있는 글 입니다. 2021. 8. 3.
[React] React-Query 보호되어 있는 글 입니다. 2021. 8. 2.
[React] Recoil Recoil React를 위한 상태 관리 라이브러리 설치 # npm npm install recoil # yarn yarn add recoil ESLint eslint-plugin-react-hooks를 사용하는 경우 useRecoilCallback을 additionalHooks에 추가하는 것을 권장 useRecoilCallback()을 사용하기 위해 전달된 종속성이 잘못 지정되었을 때 경고와 해결 방안 제시해줌 { "plugins": ["react-hooks"], "rules": { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": [ "warn", {// 추가 "additionalHooks": "useRecoilCallback.. 2021. 7. 29.
[WebSocket] Spring Boot + React WebSocket 코드 구현 보호되어 있는 글 입니다. 2021. 7. 26.
Spring Boot 유효성 검사 Spring Boot 유효성 검사 클라이언트에서만 validation을 하게 될 경우 얼마든지 브라우저에서 조작이 가능하기 때문에, 클라이언트 뿐만 아니라 백엔드에서도 함께 유효성 검사를 진행해야한다. 그래서 Spring Boot에서 유효성 검사를 진행하였다. 코드 build.gradle dependencies { ... implementation 'org.springframework.boot:spring-boot-starter-validation:2.5.2' ... } User.java @Entity @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) @ToString(of = {"id", "email", "nickname"}) public clas.. 2021. 7. 20.
Spring Session + Redis Redis key-value 형태로 비정형 데이터를 저장하는 메모리 기반 DB 단순한 key-value 구조이기 때문에 많은 저장 메모리 용량을 요구하지 않고 빠른 속도가 중요하므로 세션을 저장하기에 가장 알맞는 DB RDBMS처럼 중요한 데이터를 다루기 보다는 Cache성의 데이터를 처리하는 store Redis 설치(mac OS) Brew 설치 $ brew install redis Redis 시작 # Redis 시작 $ brew services start redis # Redis 정지 $ brew services stop redis # Redis 재시작 $ brew services restart redis Redis 실행 및 종료 # Redis 실행 $ redis-cli # Redis 종료 $ shu.. 2021. 7. 19.
[IntelliJ] Spring 서버 재시작 없이 반영 Spring 서버 재시작 없이 반영 1. Dependency 추가 dependencies { ... developmentOnly "org.springframework.boot:spring-boot-devtools" ... } 2. application.yml 추가 devtools: livereload: enabled: true restart: enabled: true thymeleaf: cache: false 3. IntelliJ 설정 Preferences(command + ,) → Compiler → Build project automatically 체크 shift 연속 두번 → Registry → compiler.automake.allow.when.app.running 체크 2021. 7. 19.
반응형