Skip to content

irnd04/j-spring-framework

Repository files navigation

install

./gradlew clean jar
java -jar j-spring-framework-app/build/libs/*.jar

core 구현 기능

Annotation

  • @Authwired
  • @Bean
  • @Component
  • @Configuration
  • @Controller
  • @Order
  • @PathVariable
  • @Repository
  • @RequestBody
  • @RequestMapping
  • @ResponseBody
  • @Service

View

  • HTML View
  • JSON View

Etc

  • Interceptor
  • Filter
  • ExceptionHandler
  • Converter
  • StaticResource

app

  • 가게 목록 조회
    curl localhost:8080/shops -X GET -H 'Content-Type: application/json'
    
  • 가게 단건 조회
    curl localhost:8080/shops/1 -X GET -H 'Content-Type: application/json'
    
  • 가게 추가
    curl localhost:8080/shops -X POST -H 'Content-Type: application/json' -d "{\"name\": \"가게명\", \"address\": \"서울시 역삼동 123-1 203\"}"
    
  • 가게 수정
    curl localhost:8080/shops/1 -X PUT -H 'Content-Type: application/json' -d "{\"name\": \"가게명\", \"address\": \"서울시 역삼동 123-1 203\"}"
    
  • 가게 삭제
    curl localhost:8080/shops/1 -X DELETE -H 'Content-Type: application/json'
    

About

스프링부트 직접 구현해보기

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published