0.실행하고 있는 톰캣 서버는 종료한다.
(같이 실행하면 포트를 두개 쓸 수 없으니까 오류남)
1.해당 파일로 이동
cd : 폴더 이동 명령어 (change directory)
$cd C:\study\hello-spring\hello-spring
2.파일 내용을 확인
dir : 폴더 내부 read
$dir
이렇게 폴더 내부를 보여줌.
3.gradle 빌드 실행
$gradlew build
BUILD SUCCESSFUL이 보이면 완료!
4.빌드 후 생성된 폴더로 이동, java파일 실행
$cd build/libs
$dir밑의 jar파일을 실행시킨다.
$java -jar hello-spirng-0.0.1-SNAPSHOT.jar
스프링 실행화면이 뜨고
localhost로 접속이 완료되면 끝
5.종료는 cntl+C