簡述
本文講述內(nèi)容是基于spring boot+JPA+Oracle為主要技術(shù)架構(gòu)的基礎(chǔ)項目思杯,我們都知道項目啟動時都會做一些基礎(chǔ)初始化设塔,并且會自動輸出一些日志扣汪,今天就來看看這些初始日志都是做了什么。
啟動日志
2021-07-23 10:53:46.549 [SpringApplicationShutdownHook] INFO [] o.s.orm.jpa.LocalContainerEntityManagerFactoryBean 651|Closing JPA EntityManagerFactory for persistence unit 'default'
2021-07-23 10:53:46.557 [SpringApplicationShutdownHook] INFO [] com.zaxxer.hikari.HikariDataSource 350|HikariPool-1 - Shutdown initiated...
2021-07-23 10:53:46.595 [SpringApplicationShutdownHook] INFO [] com.zaxxer.hikari.HikariDataSource 352|HikariPool-1 - Shutdown completed.
2021-07-23 10:53:49.748 [main] INFO [] c.c.g.i.h.HundsunInterfaceApplication 55|Starting HundsunInterfaceApplication v0.0.1-SNAPSHOT using Java 1.8.0_292 on 39194fdf4278 with PID 1 (/usr/local/hundsun-interface/hundsun-interface.jar started by root in /usr/local/hundsun-interface)
2021-07-23 10:53:49.750 [main] DEBUG [] c.c.g.i.h.HundsunInterfaceApplication 56|Running with Spring Boot v2.5.2, Spring v5.3.8
2021-07-23 10:53:49.751 [main] INFO [] c.c.g.i.h.HundsunInterfaceApplication 663|The following profiles are active: test
2021-07-23 10:53:50.580 [main] INFO [] o.s.d.r.config.RepositoryConfigurationDelegate 132|Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-07-23 10:53:50.705 [main] INFO [] o.s.d.r.config.RepositoryConfigurationDelegate 201|Finished Spring Data repository scanning in 114 ms. Found 11 JPA repository interfaces.
2021-07-23 10:53:51.801 [main] INFO [] o.s.boot.web.embedded.tomcat.TomcatWebServer 108|Tomcat initialized with port(s): 8080 (http)
2021-07-23 10:53:51.811 [main] INFO [] org.apache.coyote.http11.Http11NioProtocol 173|Initializing ProtocolHandler ["http-nio-8080"]
2021-07-23 10:53:51.812 [main] INFO [] org.apache.catalina.core.StandardService 173|Starting service [Tomcat]
2021-07-23 10:53:51.812 [main] INFO [] org.apache.catalina.core.StandardEngine 173|Starting Servlet engine: [Apache Tomcat/9.0.48]
2021-07-23 10:53:51.869 [main] INFO [] o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] 173|Initializing Spring embedded WebApplicationContext
2021-07-23 10:53:51.870 [main] INFO [] o.s.b.w.s.c.ServletWebServerApplicationContext 290|Root WebApplicationContext: initialization completed in 1981 ms
2021-07-23 10:53:52.188 [main] INFO [] org.hibernate.jpa.internal.util.LogHelper 31|HHH000204: Processing PersistenceUnitInfo [name: default]
2021-07-23 10:53:52.254 [main] INFO [] org.hibernate.Version 44|HHH000412: Hibernate ORM core version 5.4.32.Final
2021-07-23 10:53:52.393 [main] INFO [] org.hibernate.annotations.common.Version 56|HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-07-23 10:53:52.527 [main] INFO [] com.zaxxer.hikari.HikariDataSource 110|HikariPool-1 - Starting...
2021-07-23 10:53:52.790 [main] INFO [] com.zaxxer.hikari.HikariDataSource 123|HikariPool-1 - Start completed.
2021-07-23 10:53:52.816 [main] INFO [] org.hibernate.dialect.Dialect 175|HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
2021-07-23 10:54:00.407 [main] INFO [] o.h.e.t.jta.platform.internal.JtaPlatformInitiator 52|HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-07-23 10:54:00.417 [main] INFO [] o.s.orm.jpa.LocalContainerEntityManagerFactoryBean 437|Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-07-23 10:54:01.629 [main] WARN [] o.s.b.a.o.j.JpaBaseConfiguration$JpaWebConfiguration 219|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
2021-07-23 10:54:02.243 [main] INFO [] org.apache.coyote.http11.Http11NioProtocol 173|Starting ProtocolHandler ["http-nio-8080"]
2021-07-23 10:54:02.276 [main] INFO [] o.s.boot.web.embedded.tomcat.TomcatWebServer 220|Tomcat started on port(s): 8080 (http) with context path ''
2021-07-23 10:54:02.287 [main] INFO [] c.c.g.i.h.HundsunInterfaceApplication 61|Started HundsunInterfaceApplication in 13.238 seconds (JVM running for 14.337)
這是最基本的項目打印的日志亡脸,如果還配置了過濾器校镐、定時任務(wù)亿扁、第三方框架等,也會一一打印出來鸟廓。
若您覺得文章還不錯从祝,記得點贊轉(zhuǎn)發(fā)哦!引谜!