풀소유

  • 홈
  • 태그
  • 방명록

controller 1

NestJS Controller에 대해 알아보기

Controller 생성하기 nest g controller [컨트롤러 이름] *.controller.spec.ts 은 테스트 파일로 생성을 원치 않으면 명령어 뒤에 --no-spec 을 붙여주면 된다. 요청 처리 방식 @Controller('boards') export class BoardsController { @Get() getBoards() { return [] } } NestJS의 컨트롤러는 스프링의 컨트롤러와 매우 유사하다. 엔드포인트를 설정하는 데코레이터는 다르지 않지만 파라미터를 바인딩하는 데코레이터에는 차이가 있다. Path Parameter @Controller('boards') export class BoardsController { // GET hostname:3000/boards/..

Javascript/NestJS 2023.03.13
이전
1
다음
더보기
프로필사진

Starting is the perfect condition

  • 분류 전체보기 N
    • CSS
    • JVM
      • JPA
      • SpringCloud
      • SpringMVC
      • Kotlin
    • Javascript
      • React
      • NestJS
      • NuxtJS
    • Database
      • Redis
      • Postgresql
    • CS
      • Linux
      • 네트워크
    • DevOps
      • AWS
      • K8S
      • Container
      • VM
      • ElasticSearch
    • wsl2
    • 디자인 패턴
    • 자료구조 & 알고리즘
    • 도서
    • 금융
    • 글쓰기 N
    • GraphQL
    • Keycloak

Tag

postgre array, 조인테이블, 일대일 식별, postgresql 배열, AWS, oauth2, QClass, com.vladmihalcea:bibernate-types, 파이프, AuroraDB, 슈퍼-서브 타입 모델링, authguard, JPA, env, 커스텀 파이프, nestjs, 상송 관계 매핑, querydsl, @MapsId, github actions,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바