Skip to content

Java spring 프로젝트 시작하기 #1

Description

@DeveloperRyou

참고 자료 :
https://pncode.tistory.com/124
https://velog.io/@tjdals9638/Spring-boot%EB%A1%9C-Rest-API-%EB%A7%8C%EB%93%A4%EA%B8%B0

Java spring 프로젝트를 시작해보겠습니다.

필수 구현

  1. Java spring을 이용해서 DB를 제외하고 프로젝트를 생성
  2. 브라우저(크롬)에 localhost:8080 으로 접속시 Hello world 가 출력되도록 구현
  3. 브라우저(크롬)에 localhost:8080/api/test 으로 접속시 JSON 형태인 { "test" : "api test success" } 가 출력되도록 구현

보너스 구현

  1. 브라우저(크롬)에 localhost:8080/api/testkey?key=[실제 숫자] 로 접속시 JSON 형태인 { "key" : [실제 숫자] } 가 출력되도록 구현
  • 실제 숫자가 달라질 때마다 출력되는 형태도 달라져야 한다.
  • 숫자가 아닌 값이 들어왔을 때는 임의의 예외처리를 진행해야한다

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions