# requirements.txt virtualenv black pre-commit # pyproject.toml [tool.black] line-length = 80 # .pre-commit-config.yaml repos: - repo: https://github.com/psf/black rev: 23.9.1 hooks: - id: black rm -rf .venv virtualenv .venv . .venv/bin/activate pip3 install -r requirements.txt pre-commit install https://velog.io/@samnaka/pycharm-vscode-black-%EC%A0%81%EC%9A%A9 pycharm vscode black 적용, pre-commi..
global: resolve_timeout: 1m slack_api_url: https://hooks.slack.com/services/... route: group_by: [alertname] group_wait: 30s group_interval: 5m repeat_interval: 1h receiver: prd routes: - receiver: dev matchers: - instance=~"0.0.0.0:1234" receivers: - name: prd slack_configs: - channel: error send_resolved: true - name: dev slack_configs: - channel: error-dev send_resolved: true inhibit_rules: -..
import static org.junit.jupiter.api.Assertions.assertThrows; @Test public void junit5에서_exception_테스트_1() { Assertions.assertThrows(RuntimeException.class, () -> { DoSomething.func(); }); } https://covenant.tistory.com/256 완벽정리! Junit5로 예외 테스트하는 방법 환경 구성 testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeClasspath - Runtime classpath of source set 'test'. +--- org...
https://lnsideout.tistory.com/entry/%EB%84%A4%EC%9D%B4%EB%B0%8D-%EC%B4%9D%EC%A0%95%EB%A6%ACcamel-case-kebab-case-pascal-case-snake-case 네이밍 규칙 총정리(camel case, kebab case, pascal case, snake case) 프로그래밍 개발을 할때 변수명이나 클래스명을 만들때 규칙을 정해서 만듭니다. 혼자서 스터디로 하는 프로젝트가 아니라(혼자하더라도 습관을 들이긴 해야합니다.) 다수의 사람들이 같이 일 lnsideout.tistory.com
@RequestMapping(value="/test/{firstNameIds}", method=RequestMethod.GET) @ResponseBody public String test(@PathVariable List firstNameIds) { //Example: pring your params for(Integer param : firstNameIds) { System.out.println("id: " + param); } return "Dummy"; } https://stackoverflow.com/questions/9623258/passing-an-array-or-list-to-pathvariable-spring-java Passing an Array or List to @Pathvariabl..
from typing import Annotated from fastapi import Depends from fastapi.security import HTTPBearer, HTTPBasicCredentials security = HTTPBearer() @app.get("/api/v1/test") def test( token: Annotated[HTTPBasicCredentials, Depends(security)], https://stackoverflow.com/questions/70926257/how-to-pass-authorization-header-from-swagger-doc-in-python-fast-api How to Pass Authorization Header from Swagger D..
Authorization: Authorization: Basic base64({USERNAME}:{PASSWORD}) Authorization: Bearer https://velog.io/@tosspayments/Basic-%EC%9D%B8%EC%A6%9D%EA%B3%BC-Bearer-%EC%9D%B8%EC%A6%9D%EC%9D%98-%EB%AA%A8%EB%93%A0-%EA%B2%83 Basic 인증과 Bearer 인증의 모든 것 토스페이먼츠-HTTP 인증 HTTP 인증(Authorization)은 웹 서버의 비밀번호 같은 역할을 해줘요. 비밀번호로 이메일 계정의 권한을 확인하는 것 처럼, HTTP 인증으로 서버에 접근하는 클라이언트의 권한을 velog.io
@app.get("/items/") async def read_items(): return [{"name": "Foo"}] @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): """Your custom validation exception.""" message = return JSONResponse( status_code=400, content={"message": f"Validation error: {exc}"} ) def custom_openapi(): if app.openapi_schema: return app.openapi_schema openapi_schema = ge..
https://stackoverflow.com/questions/969285/how-do-i-translate-an-iso-8601-datetime-string-into-a-python-datetime-object How do I translate an ISO 8601 datetime string into a Python datetime object? I'm getting a datetime string in a format like "2009-05-28T16:15:00" (this is ISO 8601, I believe). One hackish option seems to be to parse the string using time.strptime and passing the first six sta..
https://github.com/tiangolo/fastapi/issues/518#issuecomment-576629657 Documenting multiple possible error models for a single response code · Issue #518 · tiangolo/fastapi Description How can I list multiple possible error responses so they're documented. I've tried supplying multiple error models in the model field of the responses dict with no success: authorize_pa... github.com
logging: level: org.springframework.security: DEBUG org.springframework.web: DEBUG org.springframework.transaction.interceptor: TRACE org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor: WARN pattern: level: "[userId=%X{userId}, reqId=%X{requestId}] %5p" file: path: logs logback: rollingpolicy: file-name-pattern: ${LOG_FILE}.%d{yyyy-MM-dd-HH}.%i.gz max-file-s..
https://hajoung56.tistory.com/72 [Thymeleaf] 타임리프 주요 기능 유틸리티 - Utility Objects(Strings, Numbers, Objects, Arrays, Lists, Maps, Messages, 아래 링크와 같이 이전에는 타임리프 정의와 사용방법에 기본적인 기능들을 간단히 설명하였지만, 이번 글에서 주요 유틸리티를 안내합니다. [Thymeleaf] 정의와 사용방법 Thymeleaf의 정의와 사용하 hajoung56.tistory.com import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import java.math.BigDecimal; import java.text..
https://huisam.tistory.com/entry/mapStruct Spring Mapstruct - Java Entity DTO 매핑을 편하게 하자! MapStruct? 안녕하세요~! ㅎㅎ 오늘은 Spring을 쓰면서 자주 쓰게 되는 라이브러리를 하나 소개할까 합니다! 바로 그것이 MapStruct 인데요! 이 Mapstruct란? MapStruct is a code generator that greatly simplifies the imple huisam.tistory.com https://www.okta.com/kr/identity-101/dto/ 데이터 전송 객체(DTO) 정의 및 사용 방법 | Okta Identity Korea 데이터 전송 객체(DTO)는 데이터 전송에 사용되는 설계 ..
https://huisam.tistory.com/entry/index-deep-dive#google_vignette Database - Mysql 기반으로 Index 에 대해 Deep Dive 해보자 Index 자주 사용하지만.. 잘 알고 있으신가요? 안녕하세요 ㅎㅎ 회사에 입사해서 비즈니스 통계 데이터를 추출하다 보니, 문득 그런 생각이 들었습니다. Index를 이용한 select query 를 만들고 plan 을 huisam.tistory.com
- Total
- Today
- Yesterday
- 테슬라 리퍼럴 코드 생성
- 어떻게 능력을 보여줄 것인가?
- 테슬라
- 테슬라 리퍼럴 코드 혜택
- 김달
- 책그림
- Kluge
- 팔로워 수 세기
- 할인
- 레퍼럴
- 메디파크 내과 전문의 의학박사 김영수
- COUNT
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴
- follower
- Bot
- 모델y
- 클루지
- 모델 Y 레퍼럴
- 테슬라 크레딧 사용
- 개리마커스
- wlw
- 테슬라 추천
- 테슬라 레퍼럴 코드 확인
- 인스타그램
- 테슬라 레퍼럴 적용 확인
- 연애학개론
- 유투브
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |