title: Connection with postgres by spring boot
body: <p>I have a Postgres server running on 127.0.0.1:51282. When I build this project I get org.postgresql.util.PSQLException and communicate that connection attempt has failed.
  Here is my configuration:</p>
  <pre><code>application.properties:
  spring.output.ansi.enabled=ALWAYS
  spring.datasource.url=jdbc:postgresql://172.0.0.1:51282/postgres
  spring.datasource.username=postgres
  spring.datasource.password=kurwa123
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
  spring.jpa.hibernate.ddl-auto=create
  </code></pre>
  <p>Postgres console:
  <a href="https://i.stack.imgur.com/IVpEB.png" rel="nofollow noreferrer">Picture</a></p>
  <p>Gradle configuration:</p>
  <pre><code>dependencies { 
      implementation 'org.springframework.boot:spring-boot-starter-data-jpa' 
      implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' 
      implementation 'org.springframework.boot:spring-boot-starter-web' 
      developmentOnly 'org.springframework.boot:spring-boot-devtools' 
      compile group: 'org.postgresql', name: 'postgresql', version: '42.2.18' 
      testImplementation('org.springframework.boot:spring-boot-starter-test') { 
          exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' 
      }
  }
  </code></pre>
  <p>Thanks a lot for ur answers</p>