i can't tell why, but those former answers did not work out for me. Thus, those who searched for it can also use this one ig:
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>