Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection] with root cause
org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres"
Я попытался подключиться к базе данных из кода и получил ошибку: [code]Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection] with root cause org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres" [/code] application.properties: [code]spring.application.name=wow spring.main.banner-mode=off logging.level.org.springframework=DEBUG spring.jpa.hibernate.ddl-auto=none spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5432/wow spring.datasource.username=postgres spring.datasource.password={password} spring.jpa.show-sql=true server.port = 8081 spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect spring.jpa.generate-ddl=false spring.jpa.properties.hibernate.default_schema=rolls spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl [/code] compose.yaml: [code]services: postgres: image: 'postgres:latest' environment: - 'POSTGRES_DB=wow' - 'POSTGRES_ROOT_PASSWORD={password}' - 'POSTGRES_PASSWORD={password}' - 'POSTGRES_USER=postgres' ports: - '5432' [/code] Пароль абсолютно правильный. Что нужно добавить в код для успешного подключения?