Spring Boot Project 실행

김창모·2023년 5월 26일
0

SpringBoot

목록 보기
2/19

Spring Boot 생성

Spring Boot Project 생성 후 설정을 완료하고 실행을 해보려고 한다.

Dependencies List

아래는 필자가 추가한 Dependencies 목록이다.

Build.gradle 확인

프로젝트를 열어 build.gradle 파일을 보면 추가한 dependencies 들이 추가되어있다.

plugins {
	id 'java'
	id 'org.springframework.boot' version '2.7.12'
	id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

group = 'com.hello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

configurations {
	compileOnly {
		extendsFrom annotationProcessor
	}
}

repositories {
	mavenCentral()
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	implementation 'org.springframework.boot:spring-boot-starter-security'
	implementation 'org.springframework.boot:spring-boot-starter-validation'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'org.springframework.boot:spring-boot-starter-webflux'
	compileOnly 'org.projectlombok:lombok'
	runtimeOnly 'com.h2database:h2'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
	testImplementation 'io.projectreactor:reactor-test'
	testImplementation 'org.springframework.security:spring-security-test'
}

tasks.named('test') {
	useJUnitPlatform()
}

HelloApplication 을 실행

시켜보면 아래와 같은 메세지가 나온다.

/Library/Java/JavaVirtualMachines/jdk-11.0.17.jdk/Contents/Home/bin/java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=61984:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/mong/Desktop/velog/hello/build/classes/java/main:/Users/mong/Desktop/velog/hello/build/resources/main:/Users/mong/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.26/8f8cf0372abf564913e9796623aac4c8ea44025a/lombok-1.18.26.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-data-jpa/2.7.12/17fdcc9bc155a6e6459190078c3a37c7fce0ced8/spring-boot-starter-data-jpa-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-security/2.7.12/bf26ba75e37beb854ee14b6a09d39ce109458084/spring-boot-starter-security-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-validation/2.7.12/5d1a41949e944335de0af5153aca20f08a720736/spring-boot-starter-validation-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-web/2.7.12/aba3f96331e2cfa316d8ec7446804721120a0552/spring-boot-starter-web-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-webflux/2.7.12/acb01eea47c6ced83b2bb5995714341711a4df0e/spring-boot-starter-webflux-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-aop/2.7.12/334620701ca6aa67c1258c67bbe65ae75607d25a/spring-boot-starter-aop-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-jdbc/2.7.12/e9cf3b67ddd74e7e0356a0eecf56475196a5e684/spring-boot-starter-jdbc-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/jakarta.transaction/jakarta.transaction-api/1.3.3/c4179d48720a1e87202115fbed6089bdc4195405/jakarta.transaction-api-1.3.3.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/jakarta.persistence/jakarta.persistence-api/2.2.3/8f6ea5daedc614f07a3654a455660145286f024e/jakarta.persistence-api-2.2.3.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.hibernate/hibernate-core/5.6.15.Final/ab14b7cef1fdff654ca81923048a6034d6c7cfa7/hibernate-core-5.6.15.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-jpa/2.7.12/a81f0cce406074c684b0237ed0795b00f750be3c/spring-data-jpa-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/5.3.27/d6311337bd1eb60cb7da6f064c97c4b22a16497/spring-aspects-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter/2.7.12/a5f6a95e4e4a50cfaf0f14c86240d8be49637141/spring-boot-starter-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/5.7.8/777cf5ae421edd7da93413edbc5e1d933456ae13/spring-security-config-5.7.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-web/5.7.8/6b81600c975b7d5330d278735554021d89af8e4/spring-security-web-5.7.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/5.3.27/ecae2962d53c587fd0e405cd60dc8415d1b9e12d/spring-aop-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-el/9.0.75/8b97771742cbd402ad1350190f8d08b240e1793b/tomcat-embed-el-9.0.75.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.hibernate.validator/hibernate-validator/6.2.5.Final/a68959c06e5f8ff45faff469aa16f232c04af620/hibernate-validator-6.2.5.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-json/2.7.12/863c30cf3a7858421d71762e1632d887cdb0866f/spring-boot-starter-json-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/5.3.27/8beabbb0cb64c448b39df790b62e342245ee7971/spring-webmvc-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-tomcat/2.7.12/ab5e32159703fbc429009cd5d0cffc9497d02773/spring-boot-starter-tomcat-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/5.3.27/a51c45a8602052a2a90f7e645a47ba8df1547795/spring-web-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webflux/5.3.27/596b5de00091555d027e36bee25ba0e2718c7490/spring-webflux-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-reactor-netty/2.7.12/65ca374c8877e7e938876c81a6ff87f98e0cbcf0/spring-boot-starter-reactor-netty-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjweaver/1.9.7/158f5c255cd3e4408e795b79f7c3fbae9b53b7ca/aspectjweaver-1.9.7.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.zaxxer/HikariCP/4.0.3/107cbdf0db6780a065f895ae9d8fbf3bb0e1c21f/HikariCP-4.0.3.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/5.3.27/c96414a7531595d9c7d2addee132b362fa5ef65f/spring-jdbc-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.hibernate.common/hibernate-commons-annotations/5.1.2.Final/e59ffdbc6ad09eeb33507b39ffcf287679a498c8/hibernate-commons-annotations-5.1.2.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.jboss.logging/jboss-logging/3.4.3.Final/c4bd7e12a745c0e7f6cf98c45cdcdf482fd827ea/jboss-logging-3.4.3.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.12.23/d470526e8c4566c04e9ae5d3ccb62d1a7aa58986/byte-buddy-1.12.23.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/antlr/antlr/2.7.7/83cd2cd674a217ade95a4bb83a8a14f351f48bd0/antlr-2.7.7.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.jboss/jandex/2.4.2.Final/1e1c385990b258ff1a24c801e84aebbacf70eb39/jandex-2.4.2.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml/classmate/1.5.1/3fe0bed568c62df5e89f4f174c101eab25345b6c/classmate-1.5.1.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.8/c90a335a07c60db986f29d35b0f8ac0a18f0f989/jaxb-runtime-2.3.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/5.3.27/251162aa2fe5cb374a482ae87fa6e8e8e747d72/spring-context-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-orm/5.3.27/80823b39c7fe25ec825e7e13cb7ac0053fada349/spring-orm-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-commons/2.7.12/a40381f82e9b0d02a9768b10409f1b74a062f0f4/spring-data-commons-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/5.3.27/be6e6752ad18f0944af21c3da8987b6506e13c53/spring-tx-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.3.27/46e7d917551ffcc0a104fd971d1fa207b30d7761/spring-beans-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.3.27/ff5e35f2d4f72d22c476ff9b7bce1de25c980ebd/spring-core-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.36/6c62681a2f655b49963a5983b8b0950a6120ae14/slf4j-api-1.7.36.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-autoconfigure/2.7.12/5bb8661bba72f7ca353ae486ccb06285f0ed84eb/spring-boot-autoconfigure-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot/2.7.12/888c3545dc3c6ca791753c7ad621a2d03f222732/spring-boot-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-logging/2.7.12/b6590492b4d92baebb4ac7c1b5db11fc3488e347/spring-boot-starter-logging-2.7.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/jakarta.annotation/jakarta.annotation-api/1.3.5/59eb84ee0d616332ff44aba065f3888cf002cd2d/jakarta.annotation-api-1.3.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.30/8fde7fe2586328ac3c68db92045e1c8759125000/snakeyaml-1.30.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-core/5.7.8/f3d6d9b4b6a28f2cc1350275b877eae9dbfc8c32/spring-security-core-5.7.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/5.3.27/6225619970e8376df5c3d777610d9d03b977063b/spring-expression-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/jakarta.validation/jakarta.validation-api/2.0.2/5eacc6522521f7eacb081f95cee1e231648461e7/jakarta.validation-api-2.0.2.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.13.5/8ba3b868e81d7fc6ead686bd2353859b111d9eaf/jackson-datatype-jsr310-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.module/jackson-module-parameter-names/2.13.5/a401a99e7a45450fd3ef76e82ba39005fd1a8c22/jackson-module-parameter-names-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.datatype/jackson-datatype-jdk8/2.13.5/1278f38160812811c56eb77f67213662ed1c7a2e/jackson-datatype-jdk8-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.13.5/aa95e46dbc32454f3983221d420e78ef19ddf844/jackson-databind-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-websocket/9.0.75/236a09fb990d3f3c15af22cc7e3cf5bce73fe5c3/tomcat-embed-websocket-9.0.75.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/9.0.75/a431d28cd877f3e45bfad7e8cc4c9ca3f4a2a206/tomcat-embed-core-9.0.75.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.projectreactor/reactor-core/3.4.29/f8335f4138df2bf56a62ea0d3a18cabba043bbe6/reactor-core-3.4.29.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-http/1.0.32/5ab0b14998831dea57ad5a2898cbf0628c50c78e/reactor-netty-http-1.0.32.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/jakarta.xml.bind/jakarta.xml.bind-api/2.3.3/48e3b9cfc10752fba3521d6511f4165bea951801/jakarta.xml.bind-api-2.3.3.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/txw2/2.3.8/66e0297f1196f0d15a776e699de1b8e6ac5d44dd/txw2-2.3.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.sun.istack/istack-commons-runtime/3.0.12/cbbe1a62b0cc6c85972e99d52aaee350153dc530/istack-commons-runtime-3.0.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jcl/5.3.27/9698ea7d5361b5e3a27ed08beb7770279bd2397/spring-jcl-5.3.27.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.12/d4dee19148dccb177a0736eb2027bd195341da78/logback-classic-1.2.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-to-slf4j/2.17.2/17dd0fae2747d9a28c67bc9534108823d2376b46/log4j-to-slf4j-2.17.2.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.slf4j/jul-to-slf4j/1.7.36/ed46d81cef9c412a88caef405b58f93a678ff2ca/jul-to-slf4j-1.7.36.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-crypto/5.7.8/5dfb16df07aa4b4c9c36739930252e7e4db288ce/spring-security-crypto-5.7.8.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.13.5/136f77ab424f302c9e27230b4482e8000e142edf/jackson-annotations-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.13.5/d07c97d3de9ea658caf1ff1809fd9de930a286a/jackson-core-2.13.5.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.reactivestreams/reactive-streams/1.0.4/3864a1320d97d7b045f729a326e1e077661f31b7/reactive-streams-1.0.4.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.projectreactor.netty/reactor-netty-core/1.0.32/79461d8718ca5ae6fee9253fb64c77db9eecc5a9/reactor-netty-core-1.0.32.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http2/4.1.92.Final/65afd3b26bf167c6e31fa179933fd437a64d0b5f/netty-codec-http2-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-http/4.1.92.Final/b91f907a19c6bfb318077951eb28a3dbee8f41fd/netty-codec-http-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-native-macos/4.1.92.Final/b3b38c2c4a226cbe5a0013c05bcf704ee025c67b/netty-resolver-dns-native-macos-4.1.92.Final-osx-x86_64.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns/4.1.92.Final/31ade4afd046a1701d420aac3c2eb6ffc25f87b5/netty-resolver-dns-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-epoll/4.1.92.Final/287cddec8463544c7a5c79dfd2fafc6058baef9/netty-transport-native-epoll-4.1.92.Final-linux-x86_64.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.2.12/1d8e51a698b138065d73baefb4f94531faa323cb/logback-core-1.2.12.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.17.2/f42d6afa111b4dec5d2aea0fe2197240749a4ea6/log4j-api-2.17.2.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler-proxy/4.1.92.Final/d29ed946518e608e7e18225ee05a23c77c2dee82/netty-handler-proxy-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-handler/4.1.92.Final/d8e961d89a966c0cdea88105bbb2353408a41d12/netty-handler-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec/4.1.92.Final/9496b3d59290edcc6480cbe064f33560873f7484/netty-codec-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport/4.1.92.Final/e0cf483b7c04af7207c02a6ff0c861592b09c97a/netty-transport-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-buffer/4.1.92.Final/5ff1ba7ec68c20e635fc0f2b792c38c951f688d6/netty-buffer-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-common/4.1.92.Final/66133f9ad31816a227acf3030632903cb9e4c5a2/netty-common-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver-dns-classes-macos/4.1.92.Final/ea1bee2e2356c7d9cb8c31325486884dd6b84994/netty-resolver-dns-classes-macos-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-dns/4.1.92.Final/1416eb862edf16d0e5e867d47b4f00937e7133ee/netty-codec-dns-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-resolver/4.1.92.Final/fe96e210a4e139cb043d26702792b6098b93b13f/netty-resolver-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-classes-epoll/4.1.92.Final/ca149d6a9a028eafcd6b45e3884529d04628fe64/netty-transport-classes-epoll-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-transport-native-unix-common/4.1.92.Final/22364cca56b752abb49fb7972f0f6299b8d6be98/netty-transport-native-unix-common-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/io.netty/netty-codec-socks/4.1.92.Final/ae1daa774f14a4cd9ce87465018ca961357ee8d3/netty-codec-socks-4.1.92.Final.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.h2database/h2/2.1.214/d5c2005c9e3279201e12d4776c948578b16bf8b2/h2-2.1.214.jar:/Users/mong/.gradle/caches/modules-2/files-2.1/com.sun.activation/jakarta.activation/1.2.2/74548703f9851017ce2f556066659438019e7eb5/jakarta.activation-1.2.2.jar com.hello.hello.HelloApplication

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::               (v2.7.12)

2023-05-27 05:03:11.001  INFO 11842 --- [           main] com.hello.hello.HelloApplication         : Starting HelloApplication using Java 11.0.17 on Mong-MacBookPro.local with PID 11842 (/Users/mong/Desktop/velog/hello/build/classes/java/main started by mong in /Users/mong/Desktop/velog/hello)
2023-05-27 05:03:11.004  INFO 11842 --- [           main] com.hello.hello.HelloApplication         : No active profile set, falling back to 1 default profile: "default"
2023-05-27 05:03:11.393  INFO 11842 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-05-27 05:03:11.401  INFO 11842 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 3 ms. Found 0 JPA repository interfaces.
2023-05-27 05:03:11.752  INFO 11842 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2023-05-27 05:03:11.758  INFO 11842 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2023-05-27 05:03:11.758  INFO 11842 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.75]
2023-05-27 05:03:11.829  INFO 11842 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2023-05-27 05:03:11.829  INFO 11842 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 793 ms
2023-05-27 05:03:11.906  INFO 11842 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2023-05-27 05:03:12.014  INFO 11842 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2023-05-27 05:03:12.046  INFO 11842 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-05-27 05:03:12.085  INFO 11842 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.15.Final
2023-05-27 05:03:12.186  INFO 11842 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2023-05-27 05:03:12.259  INFO 11842 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2023-05-27 05:03:12.382  INFO 11842 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-05-27 05:03:12.391  INFO 11842 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-05-27 05:03:12.461  WARN 11842 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-05-27 05:03:12.659  WARN 11842 --- [           main] .s.s.UserDetailsServiceAutoConfiguration : 

Using generated security password: c486f6f8-88ec-41b1-bfea-68fcfa89df7b

This generated password is for development use only. Your security configuration must be updated before running your application in production.

2023-05-27 05:03:12.730  INFO 11842 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@43ab0659, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@644947ee, org.springframework.security.web.context.SecurityContextPersistenceFilter@7d7d8911, org.springframework.security.web.header.HeaderWriterFilter@6814262d, org.springframework.security.web.csrf.CsrfFilter@290c266c, org.springframework.security.web.authentication.logout.LogoutFilter@2b9d4b0, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@516c20de, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@2f6f4ac4, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@25421809, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@52d63b7e, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@4ffe3d42, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@6cd7f381, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@714bffd5, org.springframework.security.web.session.SessionManagementFilter@75a9cc24, org.springframework.security.web.access.ExceptionTranslationFilter@ce2eaa7, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1da5c19d]
2023-05-27 05:03:12.805  INFO 11842 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2023-05-27 05:03:12.816  INFO 11842 --- [           main] com.hello.hello.HelloApplication         : Started HelloApplication in 2.077 seconds (JVM running for 2.807)

Using generated security password ?

Using generated security password: c486f6f8-88ec-41b1-bfea-68fcfa89df7b 는 Spring Security 를 추가해서 알려주는 password이다.

localhost:8080 접속

브라우저 에서 localhost:8080 로 접속해보면 아래 화면이 나온다.

Username 에 user
Password 에 위의 패스워드를 입력하고 Sign in 버튼을 누르면 아래와 같은 페이지가 나오고
SpringBoot 가 정상적으로 실행된 것이다.

0개의 댓글