Very slow Spring Boot application startup

后端 未结 8 1668

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:14

    I used the following piece of code

    spring:
        jpa:
            database-platform: org.hibernate.dialect.PostgreSQLDialect
            show-sql: false
            generate-ddl: true
            **hibernate:
                ddl-auto: none
            properties:
                hibernate.hbm2ddl.auto: none**
    

提交回复
热议问题