[Spring Boot를 활용한 RESTful WebService](1)

Jayden ·2022년 12월 13일
0

1. webService

A web service (WS) is either:

  • a service offered by an electronic device to another electronic device, communicating with each other via the Internet, or
  • a server running on a computer device, listening for requests at a particular port over a network, serving web documents (HTML, JSON, XML, images).

2. REST

(1)REST(REpresentational State Transfer)

  • Resource의 Representaional에 의한 상태 전달
  • HTTP Method를 통해 Resource를 처리하기 위한 아키텍쳐
    (컴퓨터의 저장된 파일 / DB의 데이터)

(2) RESTful

  • REST API를 제공하는 웹서비스

(3) Resource

  • URI(Uniform Resource Identifier), 인터넷 자원을 나타내는 유일한 주소

  • XML, HTML, JSON

3. Spring Boot

  1. Spring Boot

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".

We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.

If you’re looking for information about a specific version, or instructions about how to upgrade from an earlier release, check out the project release notes section on our wiki.

1) Spring Boot Applicaton

2) Auto Configuration

개발에 필요한 설정 자동화,사용자가 등록한 환경을 불러서 읽어온다.

3) Component Scan

  • 본 프로젝트에 선언된 각종 컴포넌트를 읽어옴
@SpringBootAppliation
public class MyRestServicesApplication{
	public static void main(String[] args){
		ApplicationConstext application = SpringApplication.run(MyRestfulServicesApplication.class, args);
        System.out.println(str);
	}
}

profile
프론트엔드 개발자

0개의 댓글