반응형
프로젝트 루트로 가자
➜ ll
total 56
-rw-r--r--@ 1 postil staff 1.3K Feb 12 09:46 HELP.md
drwxr-xr-x@ 8 postil staff 256B Feb 12 09:56 build
-rw-r--r--@ 1 postil staff 1.1K Feb 12 10:43 build.gradle
drwxr-xr-x@ 3 postil staff 96B Feb 12 09:46 gradle
-rwxr-xr-x@ 1 postil staff 8.6K Feb 12 09:46 gradlew
-rw-r--r--@ 1 postil staff 2.9K Feb 12 09:46 gradlew.bat
-rw-r--r--@ 1 postil staff 29B Feb 12 09:46 settings.gradle
drwxr-xr-x@ 4 postil staff 128B Feb 12 09:46 src
➜
클린 빌드를 해보자.
➜ ./gradlew clean build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2025-02-12T17:05:07.363+09:00 INFO 36187 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2025-02-12T17:05:07.364+09:00 INFO 36187 --- [ionShutdownHook] cohttp://m.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2025-02-12T17:05:07.369+09:00 INFO 36187 --- [ionShutdownHook] cohttp://m.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
BUILD SUCCESSFUL in 8s
8 actionable tasks: 8 executed
build 폴더 안에 libs 폴더를 보자.
➜ cd build/libs
➜ libs
➜ libs ll
total 109704
-rw-r--r--@ 1 postil staff 4.9K Feb 12 17:05 jpashop-0.0.1-SNAPSHOT-plain.jar
-rw-r--r--@ 1 postil staff 54M Feb 12 17:05 jpashop-0.0.1-SNAPSHOT.jar
➜ libs
실행해보자.
➜ libs java -jar jpashop-0.0.1-SNAPSHOT.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.4.2)
...
잘 실행된다.
웹브라우저에서 접속하여 확인해보자.
반응형
'스프링 부트' 카테고리의 다른 글
스프링 부트 JPA 쿼리 파라미터 로그 남기기 (P6Spy 이용) (0) | 2025.02.12 |
---|---|
스프링 부트 JPA 쿼리 파라미터 로그 남기기 (0) | 2025.02.12 |
H2 데이터베이스 엔진 세팅 (0) | 2025.02.12 |
permission denied (0) | 2025.02.12 |
스프링 부트 세팅 (0) | 2025.02.12 |