반응형 Develop50 [Docker] Database docker-compose 구축(mysql, redis) ≣ 목차Docker 설치https://www.docker.com/ Docker: Accelerated Container Application DevelopmentDocker is a platform designed to help developers build, share, and run container applications. We handle the tedious setup, so you can focus on the code.www.docker.com 도커 컴포즈는 개발 환경 세팅이라고 생각하고, 프로젝트 파일과 별개로 docker-compose.yml 파일을 생성해도 된다.docker-compose.yml 파일을 열고 작성한다.vi docker-compose.yml docker-compose.ym.. 2024. 7. 22. Filter, Interceptor ≣ 목차 웹 애플리케이션 개발에서 주로 사용되는 개념으로, 요청(Request)와 응답(Response) 과정에서 특정 작업을 수행하기 위해 사용된다.구현 및 사용 방식에서 차이가 있다. # 요약Filter: 서블릿 컨테이너에서 제공하며, 모든 요청에 대해 작동할 수 있는 범용적인 기능을 제공한다. 주로 웹 애플리케이션의 요청 처리 전 후에 사용된다.Interceptor: 스프링 같은 특정 프레임워크에서 제공하며, 특정 컨트롤러나 메서드에 대해 작동할 수 있다. 요청 전 후 및 완료 후에 작업을 수행할 수 있다.Filter서블릿 기반: 필터는 서블릿 컨테이너 (예: Tomcat) 에서 제공되며, 서블릿 요청 전후에 작동한다.범용성: 모든 요청에 대해 동작할 수 있으며, 특정 URL 패턴에 대해 필터를 적.. 2024. 7. 16. Mac Node.js 설치 https://nodejs.org/en/download/package-manager Node.js — Download Node.js®Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.nodejs.org v20.15.0 (LTS)# installs nvm (Node Version Manager)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash# download and install Node.js (you may need to restart the terminal)nvm install 20# verifies the right Node.js.. 2024. 6. 24. Swagger UI 사용 ≣ 목차 Swagger UI⚠️ Spring Boot 3.x.x 버전 이상 설정https://springdoc.org/ OpenAPI 3 Library for spring-bootLibrary for OpenAPI 3 with spring boot projects. Is based on swagger-ui, to display the OpenAPI description.Generates automatically the OpenAPI file.springdoc.org 접속 urlhttp://localhost:8080/swagger-ui/index.html Gradle 의존성 추가implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0'.. 2024. 6. 12. CONDITIONS EVALUATION REPORT 비활성화 application.yml 설정 파일에 작성한다.logging: level: org.springframework.boot.autoconfigure.logging: ERROR로그 메시지더보기============================CONDITIONS EVALUATION REPORT============================Positive matches:----------------- AopAutoConfiguration matched: - @ConditionalOnProperty (spring.aop.auto=true) matched (OnPropertyCondition) AopAutoConfiguration.AspectJAutoProxyingConfiguratio.. 2024. 6. 8. Port 8080 is already in use IDE 프로세스 종료 문제로 8080 포트가 사용되지 않는 문제 발생오류 메시지더보기2024-06-08T22:33:37.541+09:00 DEBUG 16974 --- [commute] [ main] o.s.b.d.LoggingFailureAnalysisReporter : Application failed to start due to an exceptionorg.springframework.boot.web.server.PortInUseException: Port 8080 is already in use at org.springframework.boot.web.server.PortInUseException.lambda$throwIfPortBindingException$0(PortInUs.. 2024. 6. 8. Layered Architecture 구조, API 적용하기 Controller - Service - Repository 구조를 사용한다. API 기능 명세간단하게 명세해두었다.POST: 과일 정보 저장PUT: 팔린 과일의 정보를 flag로 기록GET: 팔린 금액, 팔리지 않은 금액 조회SQLcreate table fruit( id bigint auto_increment, name varchar(20) comment '과일명', warehousingDate varchar(50) comment '등록 날짜', price bigint comment '가격', sell tinyint default 0 comment '판매 여부', primary key (id.. 2024. 5. 28. [백준] JAVA 풀이 - 2805: 나무 자르기 https://www.acmicpc.net/problem/2805 ▶️ 힌트이분 탐색(결과값 (결과값 > 기대값) 인 경우, min = mid + 1; //1씩 증가하면서 확인 ▶️ 풀이 import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.*;public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenize.. 2024. 5. 10. Apache 아파치 http 서버 설치 Window http 아파치 설치 1) 아파치 설치 시 해결 방안 Installing the 'Apache2.4' service (OS 5)액세스가 거부되었습니다. : AH00369: Failed to open the Windows service manager, perhaps you forgot to log in as Adminstrator? - 관리자 권한으로 실행 .\httpd -k install 1-1) 에러 Installing the 'Apache2.4' service The 'Apache2.4' service is successfully installed. Testing httpd.conf.... Errors reported here must be corrected before the servi.. 2024. 3. 22. 이전 1 2 3 4 5 6 다음 728x90 반응형