title: Spring Boot application taking long time to acquire a db connection for first time response?
body: <p>Hi all i am  new to Spring boot.
  When i am trying to get the data for the first time  API is taking long time to respond. Once the data is returned then next calls are giving response instantly. But if the API is not called for next 6 minutes then next call is again taking longer time. Sorry for poor grammar.</p>
  
  <p>spring boot version: <strong>2.0.3 RELEASE with jpa</strong></p>
  
  <p>database: <strong>Mysql</strong> </p>
  
  <p>Configuration</p>
  
  <pre><code>datasource:
      type: com.zaxxer.hikari.HikariDataSource
      url: jdbc:mysql://*************
      driver-class-name: com.mysql.jdbc.Driver
      username: ********
      password: ********
      hikari:
        connection-timeout: 30000
        idle-timeout: 600000
        maxLifetime: 1800000
    jpa:
      hibernate:
        ddl-auto: none
        naming:
          physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
      show-sql: true
      properties:
        hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  </code></pre>