Very slow Spring Boot application startup

后端 未结 8 1622

I have a simple Spring Boot application that connects to a PostgreSQL database and serves as a JSON service. Somehow the startup has become very slow, see timings 10:37:10 a

相关标签:
8条回答
  • 2020-12-23 10:29

    For dev environment, use the following property

    spring.jpa.hibernate.ddl-auto=none
    

    This would be a bit risky for staging and prod environment.

    0 讨论(0)
  • 2020-12-23 10:31

    Contributing application.yml version of property setting.

    spring:
      jpa:
        properties:
          hibernate:
            temp:
              use_jdbc_metadata_defaults: false
    
    0 讨论(0)
提交回复
热议问题