./gradlew clean jar
java -jar j-spring-framework-app/build/libs/*.jar
@Authwired
@Bean
@Component
@Configuration
@Controller
@Order
@PathVariable
@Repository
@RequestBody
@RequestMapping
@ResponseBody
@Service
- HTML View
- JSON View
- Interceptor
- Filter
- ExceptionHandler
- Converter
- StaticResource
- 가게 목록 조회
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'