Very slow Spring Boot application startup

后端 未结 8 1638

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.

提交回复
热议问题