Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
													Tags
													
											
												
												- sw expert academy
 - Crossfit
 - 그리디
 - 4811
 - 브루트포스
 - 해시해킹
 - 14863
 - BOJ14889
 - Python
 - 스택
 - dart
 - 백준
 - 서울에서경산까지
 - Flutter
 - 26008
 - 1로만들기2
 - 동적프로그래밍
 - 삼성
 - 재귀함수
 - 재귀
 - C++
 - 15353
 - BOJ
 - 15662
 - 크로스핏
 - spring boot
 - 회전하는큐
 - DP
 - D1
 - 1781
 
													Archives
													
											
												
												- Today
 
- Total
 
곧죽어도 콛잉
[Spring] Spring Boot DevTools 본문
Spring Boot DevTools
Spring Boot DevTools
- Spring Boot를 더 편리하게 사용할 수 있다!
 - 코드를 고치면 자동으로 서버를 리로드 해준다.
 - 단, java -jar를 사용해서 서버를 실행할 경우 상용화를 위한 배포 단계라 인식하고 서버를 리로드하지 않는다.
 
사용법
홈페이지에 방문하여 pom.xml에서 dependency를 설정한다.
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> </dependencies>Settings - Build,Execution,Deployment, - Compiler - Build project automatically 체크!

Settings - Advanced Settings - Allow auto… 체크!

서버 재시작 후 코드를 바꾸고, Ctrl+S를 누르면 자동으로 서버가 재시작 된다!
'Spring > 기본' 카테고리의 다른 글
| [Spring] Spring Security에서 H2-Database 사용하기 (0) | 2023.06.29 | 
|---|---|
| [Spring] Spring Boot 컨트롤러와 Rest API (0) | 2023.06.16 | 
| [Spring] WEB & HTTP의 개념 (0) | 2023.06.15 | 
| [Spring] Spring Boot의 개요 / Framework vs Library (0) | 2023.06.14 | 
			  Comments