728x90
1. build.gradle 추가
dependencies {
// web 라이브러리 추가
implementation 'org.springframework.boot:spring-boot-starter-web'
}
2. CoreApplication.java 실행

3. 실행 확인

에러페이지 뜨면 잘 적용된것
728x90
'백엔드 > Spring(Boot)' 카테고리의 다른 글
| gradle cache 삭제 (0) | 2021.08.20 |
|---|---|
| 스프링 부트 웹 프로젝트 생성시 기본 설정파일 (0) | 2021.08.20 |
| 빈 스코프 (0) | 2021.08.16 |
| Spring 클래스 초기화, 종료 (0) | 2021.08.16 |
| @Autowired 옵션 (0) | 2021.08.13 |