Я получаю эту ошибку при запуске приложения:
main] oatomcat.jdb c .pool.ConnectionPool: Невозможно создать начальные соединения пула.
Первая ошибка java здесь:
java. sql .SQLException: null at org. apache .tomcat.jdb c .pool.PooledConnection.connectUsingDriver (PooledConnection . java: 323) ~ [tomcat-jdb c -8.5.16.jar: na]
Я добавил зависимость к postgres в моём пом:
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
Я не совсем понимаю ошибку. Что здесь не так? Подробности: приложение Spring-boot развернуто на удаленном сервере. Установленная psql база данных ОС: Ubuntu 18.04
Вот postgres файл подключения:
spring.main.banner-mode=off
logging.level.org.springframework=ERROR
spring.jpa.hibernate.ddl-auto=none
spring.datasource.initialization-mode=always
spring.datasource.platform=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/mydb
spring.datasource.username=myuser
spring.datasource.password=mypass
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true