인프런 커뮤니티 질문&답변

민기님의 프로필 이미지

작성한 질문수

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

JPA와 DB 설정, 동작확인

로그출력 문제가 발생합니다.

작성

·

547

·

수정됨

1

학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.

1. 강의 내용과 관련된 질문을 남겨주세요.
2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.
(자주 하는 질문 링크: https://bit.ly/3fX6ygx)
3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.
(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)

질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.
=========================================
[질문 템플릿]
1. 강의 내용과 관련된 질문인가요? (예/아니오)
2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)
3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)

[질문 내용]
여기에 질문 내용을 남겨주세요.

 

MemberRepositoryTest테스트 실행 후 로그 문제가 있습니다.

 

좌측에 Test Result만 출력됩니다.

전체 로그 메시지입니다.

 

> Task :compileJava UP-TO-DATE

> Task :processResources

> Task :classes

> Task :compileTestJava UP-TO-DATE

> Task :processTestResources NO-SOURCE

> Task :testClasses UP-TO-DATE

> Task :test

22:41:58.441 [Test worker] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class jpabook.jpashop.MemberRepositoryTest]

22:41:58.445 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]

22:41:58.448 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]

22:41:58.464 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [jpabook.jpashop.MemberRepositoryTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]

22:41:58.470 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [jpabook.jpashop.MemberRepositoryTest], using SpringBootContextLoader

22:41:58.472 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [jpabook.jpashop.MemberRepositoryTest]: class path resource [jpabook/jpashop/MemberRepositoryTest-context.xml] does not exist

22:41:58.472 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [jpabook.jpashop.MemberRepositoryTest]: class path resource [jpabook/jpashop/MemberRepositoryTestContext.groovy] does not exist

22:41:58.472 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [jpabook.jpashop.MemberRepositoryTest]: no resource found for suffixes {-context.xml, Context.groovy}.

22:41:58.472 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [jpabook.jpashop.MemberRepositoryTest]: MemberRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.

22:41:58.496 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.527 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/mk/Desktop/study/jpashop/build/classes/java/main/jpabook/jpashop/JpashopApplication.class]

22:41:58.529 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration jpabook.jpashop.JpashopApplication for test class jpabook.jpashop.MemberRepositoryTest

22:41:58.570 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [jpabook.jpashop.MemberRepositoryTest]: using defaults.

22:41:58.570 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]

22:41:58.577 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@35293c05, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@620aa4ea, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@2db2dd9d, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@3174cb09, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4d411036, org.springframework.test.context.support.DirtiesContextTestExecutionListener@7adbd080, org.springframework.test.context.transaction.TransactionalTestExecutionListener@41beb473, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@560513ce, org.springframework.test.context.event.EventPublishingTestExecutionListener@13006998, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@37fbe4a8, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@352c308, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7d373bcf, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6d6bc158, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@5dda6f9, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@10027fc9]

22:41:58.578 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.579 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.579 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.579 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.581 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.581 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.610 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.611 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.612 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.612 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.612 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.612 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.615 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@2392212b testClass = MemberRepositoryTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5b43e173 testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@2101b44a, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@522a32b1, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@23d1e5d0, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@37ddb69a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@68ad99fe, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@74c79fa2], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].

22:41:58.616 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest]

22:41:58.616 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest]

. ____ _

/\\ / ___'_ __ (_)_ _ \ \ \ \

( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

\\/ ___)| |_)| | | | | || (_| | ) ) ) )

' |____| .__|_| |_|_| |_\__, | / / / /

=========|_|==============|___/=/_/_/_/

:: Spring Boot :: (v2.7.12)

2023-06-02 22:41:58.797 INFO 36763 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : Starting MemberRepositoryTest using Java 11.0.16 on gimmaeng-giui-MacBookAir.local with PID 36763 (started by mk in /Users/mk/Desktop/study/jpashop)

2023-06-02 22:41:58.798 INFO 36763 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : No active profile set, falling back to 1 default profile: "default"

2023-06-02 22:41:59.085 INFO 36763 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.

2023-06-02 22:41:59.092 INFO 36763 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2 ms. Found 0 JPA repository interfaces.

2023-06-02 22:41:59.367 INFO 36763 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]

2023-06-02 22:41:59.392 INFO 36763 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.15.Final

2023-06-02 22:41:59.478 INFO 36763 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}

2023-06-02 22:41:59.493 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@b5d9f1e

2023-06-02 22:41:59.493 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@b5d9f1e

2023-06-02 22:41:59.494 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@b5d9f1e

2023-06-02 22:41:59.494 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@5844a2d1

2023-06-02 22:41:59.495 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration true_false -> org.hibernate.type.TrueFalseType@3b28b7b0

2023-06-02 22:41:59.495 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration yes_no -> org.hibernate.type.YesNoType@504497fa

2023-06-02 22:41:59.496 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@34d9df9f

2023-06-02 22:41:59.497 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@34d9df9f

2023-06-02 22:41:59.497 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@34d9df9f

2023-06-02 22:41:59.497 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration character -> org.hibernate.type.CharacterType@7b91d9f

2023-06-02 22:41:59.498 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration char -> org.hibernate.type.CharacterType@7b91d9f

2023-06-02 22:41:59.498 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@7b91d9f

2023-06-02 22:41:59.498 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@2e3f324e

2023-06-02 22:41:59.498 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@2e3f324e

2023-06-02 22:41:59.498 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Short -> org.hibernate.type.ShortType@2e3f324e

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration integer -> org.hibernate.type.IntegerType@2a136383

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration int -> org.hibernate.type.IntegerType@2a136383

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@2a136383

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@25567581

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@25567581

2023-06-02 22:41:59.499 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Long -> org.hibernate.type.LongType@25567581

2023-06-02 22:41:59.500 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@71bb8b34

2023-06-02 22:41:59.500 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@71bb8b34

2023-06-02 22:41:59.500 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Float -> org.hibernate.type.FloatType@71bb8b34

2023-06-02 22:41:59.500 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@16d41725

2023-06-02 22:41:59.501 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@16d41725

2023-06-02 22:41:59.501 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@16d41725

2023-06-02 22:41:59.501 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@57c69937

2023-06-02 22:41:59.501 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@57c69937

2023-06-02 22:41:59.502 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration big_integer -> org.hibernate.type.BigIntegerType@c472300

2023-06-02 22:41:59.502 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@c472300

2023-06-02 22:41:59.502 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration string -> org.hibernate.type.StringType@2dac2e1b

2023-06-02 22:41:59.502 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.String -> org.hibernate.type.StringType@2dac2e1b

2023-06-02 22:41:59.503 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration nstring -> org.hibernate.type.StringNVarcharType@33de7f3d

2023-06-02 22:41:59.503 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@10131289

2023-06-02 22:41:59.504 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration url -> org.hibernate.type.UrlType@10fb4575

2023-06-02 22:41:59.504 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.net.URL -> org.hibernate.type.UrlType@10fb4575

2023-06-02 22:41:59.505 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration Duration -> org.hibernate.type.DurationType@2cc75b25

2023-06-02 22:41:59.505 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Duration -> org.hibernate.type.DurationType@2cc75b25

2023-06-02 22:41:59.505 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration Instant -> org.hibernate.type.InstantType@119d4443

2023-06-02 22:41:59.505 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Instant -> org.hibernate.type.InstantType@119d4443

2023-06-02 22:41:59.506 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDateTime -> org.hibernate.type.LocalDateTimeType@7e0f9528

2023-06-02 22:41:59.507 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDateTime -> org.hibernate.type.LocalDateTimeType@7e0f9528

2023-06-02 22:41:59.508 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDate -> org.hibernate.type.LocalDateType@7336fd8f

2023-06-02 22:41:59.508 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDate -> org.hibernate.type.LocalDateType@7336fd8f

2023-06-02 22:41:59.509 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalTime -> org.hibernate.type.LocalTimeType@852ef8d

2023-06-02 22:41:59.509 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalTime -> org.hibernate.type.LocalTimeType@852ef8d

2023-06-02 22:41:59.509 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@147e0734

2023-06-02 22:41:59.509 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@147e0734

2023-06-02 22:41:59.510 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetTime -> org.hibernate.type.OffsetTimeType@270d5060

2023-06-02 22:41:59.510 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetTime -> org.hibernate.type.OffsetTimeType@270d5060

2023-06-02 22:41:59.511 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@3a209918

2023-06-02 22:41:59.511 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@3a209918

2023-06-02 22:41:59.511 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration date -> org.hibernate.type.DateType@2f4d01b6

2023-06-02 22:41:59.511 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Date -> org.hibernate.type.DateType@2f4d01b6

2023-06-02 22:41:59.512 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration time -> org.hibernate.type.TimeType@beabd6b

2023-06-02 22:41:59.512 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Time -> org.hibernate.type.TimeType@beabd6b

2023-06-02 22:41:59.513 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration timestamp -> org.hibernate.type.TimestampType@13ca16bf

2023-06-02 22:41:59.513 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@13ca16bf

2023-06-02 22:41:59.513 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Date -> org.hibernate.type.TimestampType@13ca16bf

2023-06-02 22:41:59.514 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@59d5a6fd

2023-06-02 22:41:59.515 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar -> org.hibernate.type.CalendarType@1e191150

2023-06-02 22:41:59.515 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@1e191150

2023-06-02 22:41:59.515 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@1e191150

2023-06-02 22:41:59.516 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@f18b738

2023-06-02 22:41:59.516 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_time -> org.hibernate.type.CalendarTimeType@6fb22ae3

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration locale -> org.hibernate.type.LocaleType@5fd8dd66

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@5fd8dd66

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration currency -> org.hibernate.type.CurrencyType@55c50f52

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@55c50f52

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration timezone -> org.hibernate.type.TimeZoneType@79f5a6ed

2023-06-02 22:41:59.517 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@79f5a6ed

2023-06-02 22:41:59.518 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration class -> org.hibernate.type.ClassType@120350eb

2023-06-02 22:41:59.518 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Class -> org.hibernate.type.ClassType@120350eb

2023-06-02 22:41:59.518 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@643ecfef

2023-06-02 22:41:59.518 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@643ecfef

2023-06-02 22:41:59.518 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@2e45a357

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration binary -> org.hibernate.type.BinaryType@41a16eb3

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration byte[] -> org.hibernate.type.BinaryType@41a16eb3

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration [B -> org.hibernate.type.BinaryType@41a16eb3

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@684372d0

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@684372d0

2023-06-02 22:41:59.519 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@684372d0

2023-06-02 22:41:59.520 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration row_version -> org.hibernate.type.RowVersionType@6060146b

2023-06-02 22:41:59.521 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration image -> org.hibernate.type.ImageType@7a55fb81

2023-06-02 22:41:59.522 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration characters -> org.hibernate.type.CharArrayType@7272ee51

2023-06-02 22:41:59.523 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration char[] -> org.hibernate.type.CharArrayType@7272ee51

2023-06-02 22:41:59.523 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration [C -> org.hibernate.type.CharArrayType@7272ee51

2023-06-02 22:41:59.524 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@762a10b6

2023-06-02 22:41:59.524 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@762a10b6

2023-06-02 22:41:59.524 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@762a10b6

2023-06-02 22:41:59.524 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration text -> org.hibernate.type.TextType@3e0a9b1d

2023-06-02 22:41:59.524 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration ntext -> org.hibernate.type.NTextType@4e3283f6

2023-06-02 22:41:59.525 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration blob -> org.hibernate.type.BlobType@21516c88

2023-06-02 22:41:59.525 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@21516c88

2023-06-02 22:41:59.526 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@65d9e72a

2023-06-02 22:41:59.526 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration clob -> org.hibernate.type.ClobType@464aeb09

2023-06-02 22:41:59.527 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@464aeb09

2023-06-02 22:41:59.527 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration nclob -> org.hibernate.type.NClobType@b7d2d51

2023-06-02 22:41:59.527 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@b7d2d51

2023-06-02 22:41:59.528 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@66b0e207

2023-06-02 22:41:59.528 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@3ca17943

2023-06-02 22:41:59.529 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration serializable -> org.hibernate.type.SerializableType@482a58c7

2023-06-02 22:41:59.532 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration object -> org.hibernate.type.ObjectType@7b377a53

2023-06-02 22:41:59.532 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@7b377a53

2023-06-02 22:41:59.532 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@25214797

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@4e5c8ef3

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@60928a61

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@27358a19

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@8077c97

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@22865072

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@563317c1

2023-06-02 22:41:59.533 DEBUG 36763 --- [ Test worker] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@5d5d3a5c

2023-06-02 22:41:59.560 INFO 36763 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...

2023-06-02 22:41:59.627 INFO 36763 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.

2023-06-02 22:41:59.644 INFO 36763 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

2023-06-02 22:41:59.664 DEBUG 36763 --- [ Test worker] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@5a48d186] to MetadataBuildingContext [org.hibernate.boot.internal.MetadataBuildingContextRootImpl@521ba38f]

2023-06-02 22:41:59.784 DEBUG 36763 --- [ Test worker] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@5a48d186] to SessionFactoryImpl [org.hibernate.internal.SessionFactoryImpl@2be50bba]

2023-06-02 22:41:59.960 DEBUG 36763 --- [ Test worker] org.hibernate.SQL :

 

drop table if exists member CASCADE

2023-06-02 22:41:59.962 DEBUG 36763 --- [ Test worker] org.hibernate.SQL :

 

drop sequence if exists hibernate_sequence

2023-06-02 22:41:59.964 DEBUG 36763 --- [ Test worker] org.hibernate.SQL : create sequence hibernate_sequence start with 1 increment by 1

2023-06-02 22:41:59.965 DEBUG 36763 --- [ Test worker] org.hibernate.SQL :

 

create table member (

id bigint not null,

username varchar(255),

primary key (id)

)

2023-06-02 22:41:59.966 INFO 36763 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]

2023-06-02 22:41:59.971 TRACE 36763 --- [ Test worker] o.h.type.spi.TypeConfiguration$Scope : Handling #sessionFactoryCreated from [org.hibernate.internal.SessionFactoryImpl@2be50bba] for TypeConfiguration

2023-06-02 22:41:59.972 INFO 36763 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'

2023-06-02 22:42:00.103 WARN 36763 --- [ Test worker] 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-06-02 22:42:00.236 INFO 36763 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html]

2023-06-02 22:42:00.411 INFO 36763 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : Started MemberRepositoryTest in 1.775 seconds (JVM running for 2.36)

2023-06-02 22:42:00.465 INFO 36763 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@2392212b testClass = MemberRepositoryTest, testInstance = jpabook.jpashop.MemberRepositoryTest@6130a6f5, testMethod = testMember@MemberRepositoryTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5b43e173 testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@2101b44a, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@522a32b1, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@23d1e5d0, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@37ddb69a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@68ad99fe, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@74c79fa2], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@47c15468]; rollback [true]

2023-06-02 22:42:00.514 DEBUG 36763 --- [ Test worker] org.hibernate.SQL :

call next value for hibernate_sequence

2023-06-02 22:42:00.561 INFO 36763 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@2392212b testClass = MemberRepositoryTest, testInstance = jpabook.jpashop.MemberRepositoryTest@6130a6f5, testMethod = testMember@MemberRepositoryTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5b43e173 testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@2101b44a, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@522a32b1, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@23d1e5d0, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@37ddb69a, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@68ad99fe, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@74c79fa2], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]

2023-06-02 22:42:00.569 INFO 36763 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'

2023-06-02 22:42:00.569 TRACE 36763 --- [ionShutdownHook] o.h.type.spi.TypeConfiguration$Scope : Handling #sessionFactoryClosed from [org.hibernate.internal.SessionFactoryImpl@2be50bba] for TypeConfiguration

2023-06-02 22:42:00.569 DEBUG 36763 --- [ionShutdownHook] o.h.type.spi.TypeConfiguration$Scope : Un-scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration$Scope@57b69fa1] from SessionFactory [org.hibernate.internal.SessionFactoryImpl@2be50bba]

2023-06-02 22:42:00.570 INFO 36763 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...

2023-06-02 22:42:00.577 INFO 36763 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.

BUILD SUCCESSFUL in 2s

4 actionable tasks: 2 executed, 2 up-to-date

10:42:00 PM: Execution finished ':test --tests "jpabook.jpashop.MemberRepositoryTest"'.

 

application.yml 코드입니다.

띄어쓰기 잘 적용했는데도 안됩니다 ㅜㅜ

springboot는 3버전대도 아니고 2.7.12 입니다 ..
혹시나 해서 org.hibernate.orm.jdbc.bind:로 해봤는데도 로그 출력이 잘 안됩니다.

 

 

 

 

 

 

답변 1

0

안녕하세요. 민기님, 공식 서포터즈 OMG입니다.
.

올리신 이미지 윗 부분이 짤려서 확인이 불가한데요. 제가 올린 이미지 체크 부분을 클릭하여 확인해보시겠어요?

image
.
감사합니다.

민기님의 프로필 이미지
민기
질문자

헉 체크표시를 누르니 잘 나오네요 ㅠㅠ intellij 사용법이 익숙치 않아서 잘 몰랐습니다. 알려주셔서 감사합ㄴ디ㅏ.

강의 수강 중 궁금한 사항은 언제든 질문 남겨주세요 :)

민기님의 프로필 이미지

작성한 질문수

질문하기