프레임워크 33

[Spring] 스프링 입문강의 [3] - 공식 참조 사이트

[무료] 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 - 인프런 | 강의 스프링 입문자가 예제를 만들어가면서 스프링 웹 애플리케이션 개발 전반을 빠르게 학습할 수 있습니다., - 강의 소개 | 인프런 www.inflearn.com 1. Formal Spring Boot tutorial https://docs.spring.io/spring-boot/docs/current/reference/html/ Spring Boot Reference Documentation The reference documentation consists of the following sections: Legal Legal information. Getting Help Resources for gettin..

[FastAPI] FastAPI [20] Handling Errors

Handling Errors 내 API 사용자에게 에러발생을 알려줘야하는 많은 상황이 있다. 이 사용자는 프론트엔드 브라우저 유저나 사물인터넷 사용자 등등이 될 수 있다. 우리는 다음과 같은 상황에서 에러발생을 사용자에게 알려야 한다. 사용자는 operation을 실행할 충분한 권한이 없다. 사용자는 자원에 접근할 권한이 없다. 사용자가 접근하려는 item이 존재하지 않는다. etc. 이러한 상황에서 우리는 일반적으로 HTTP 상태코드 400~499를 반환해줘야 한다. HTTP 상태코드 200~299가 '성공'의 의미를 담고있는것과는 반대이다. HTTP 상태코드 400~499는 error가 존재함을 의미한다. "404 Not Found" error를 본적이 있다면 이해하기 쉽다. 다음 예시들을 통해, 예..

[FastAPI] FastAPI [18] Request Files

https://fastapi.tiangolo.com/tutorial/request-files/ Request Files - FastAPI Request Files You can define files to be uploaded by the client using File. Info To receive uploaded files, first install python-multipart. E.g. pip install python-multipart. This is because uploaded files are sent as "form data". Import File Import File a fastapi.tiangolo.com 0. Request Files File 라이브러리를 사용하여 클라이언트가 파일..

[Spring] 스프링 입문강의 [2] - 라이브러리 살펴보기

[무료] 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 - 인프런 | 강의 스프링 입문자가 예제를 만들어가면서 스프링 웹 애플리케이션 개발 전반을 빠르게 학습할 수 있습니다., - 강의 소개 | 인프런 www.inflearn.com 1. log 관련 library slf4j와 logback등이 있다. 2. test 관련 library Java쪽은 junit이 핵심이다. mockito 혹은 assertj은 testing을 편하게 할때 도움이 된다. 3. 정리 Spring Boot Library spring-boot-starter-web spring-boot-starter-tomcat - 톰캣 (웹 서버) spring-webmvc - 스프링 웹 MVC spring-boot-star..

[Spring] 스프링 입문강의 [1] - 프로젝트 생성

[무료] 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 - 인프런 | 강의 스프링 입문자가 예제를 만들어가면서 스프링 웹 애플리케이션 개발 전반을 빠르게 학습할 수 있습니다., - 강의 소개 | 인프런 www.inflearn.com 0. 배울 것 간단한 웹 application을 다음과 같은 순서로 개발해본다. 스프링 프로젝트 생성 스프링 부트로 웹 서버 실행 회원 도메인 개발 웹 MVC 개발 DB 연동 - JDBC, JPA, 스프링 데이터 JPA 테스트 케이스 작성 이를 통해 스프링으로 web application을 개발할 때 어떤 기술들이 어떻게 사용되는지 전반적인 감을 잡고 큰 그림을 그려보는 것이 핵심 목표다. 스프링 기술 자체를 배우려 하지 말고! 내가 이걸 어떻게 사..

[FastAPI] FastAPI [15] Response model 2 - Other Return Type Annotations

https://fastapi.tiangolo.com/ko/tutorial/response-model/ Response Model - Return Type - FastAPI Response Model - Return Type Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing. You can declare the type used for the response by annotating the path operation function return type. Y fastapi.tiangolo.com 0. Other Return Type Ann..