Добавлены важные параметры бд в application.properies + updated pom.xml

This commit is contained in:
Daniil Makeev 2025-02-19 10:00:30 +03:00
parent 78f2190788
commit 5d38e7a023
2 changed files with 22 additions and 7 deletions

18
pom.xml
View File

@ -13,6 +13,7 @@
<version>0.0.1-SNAPSHOT</version>
<name>Onomatopoeia-back</name>
<description>Onomatopoeia-back</description>
<url/>
<licenses>
<license/>
@ -43,13 +44,15 @@
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<version>1.18.30</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- зависимость postgres-->
<!-- зависимость postgres-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
@ -59,12 +62,22 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!-- зависимость swagger-->
<!-- зависимость swagger-->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.4</version>
</dependency>
<!-- зависимости spring security-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
@ -77,6 +90,7 @@
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</path>
</annotationProcessorPaths>
</configuration>

View File

@ -1,10 +1,11 @@
spring.application.name=Onomatopoeia-back
# ????????? ???? ???????
# set the port for the server
server.port=3000
# ????????? ???????? swagger ui (????????????)
# set the route of swagger ui
spring-doc.swagger-ui.path=/docs
# ????????? postgres
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
# postgres set up
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=MobileDev
spring.datasource.password=1339
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=update