[Spring] 프로젝트 빌드하고 실행하기
- $ dir

gradlew.bat 이 있음을 볼 수 있다.
- $ gradlew.bat


- $ gradlew clean build --info

- $ cd libs
- $ dir

hello-spring-0.0.1-SNAPSHOT.jar 이 생성되어 있음을 알 수 있다.
- cd java -jar hello-spring-0.0.1-SNAPSHOT.jar

빌드 됐고, 서버도 정상적으로 잘 작동됨을 알 수 있다!
'etc > Spring' 카테고리의 다른 글
[Spring] MVC 와 템플릿 엔진 (0) | 2021.01.12 |
---|---|
[Spring] 정적 컨텐츠 (.html) 가져오기 (0) | 2021.01.04 |
[Spring] Port 8080 was already in use. (0) | 2021.01.04 |
[Spring] spring-boot-devtools 라이브러리 추가하기 (0) | 2021.01.03 |
[Spring] Welcome Page 만들기 (0) | 2021.01.03 |
댓글
이 글 공유하기
다른 글
-
[Spring] 정적 컨텐츠 (.html) 가져오기
[Spring] 정적 컨텐츠 (.html) 가져오기
2021.01.04docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-spring-mvc-static-content Spring Boot Features Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the ear… -
[Spring] Port 8080 was already in use.
[Spring] Port 8080 was already in use.
2021.01.04스프링에서 Run을 했는데…. 대충 이런 상황이 되었다…. 오류 메세지 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-01-04 06:04:25.874 ERROR 17108 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Descriptio… -
[Spring] spring-boot-devtools 라이브러리 추가하기
[Spring] spring-boot-devtools 라이브러리 추가하기
2021.01.03build.gradle 에 해당 라인(볼드체)을 추가한다. 1 2 3 4 5 6 dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-devtools' testImplementation 'org.springframework.boot:spring-boot-starter-test' } Colored by Color Scripter cs 원래는 파일을 수정한 후에 서버를 재시작해야 변경사항이 적용됐었… -
[Spring] Welcome Page 만들기
[Spring] Welcome Page 만들기
2021.01.03
댓글을 사용할 수 없습니다.