From 6fccdd037435b10c6cd2e3a9672a17acd885f87a Mon Sep 17 00:00:00 2001 From: XyL1GaN4eG Date: Wed, 17 Jul 2024 10:56:51 +0300 Subject: [PATCH] Update application yml and application class --- .../userservice/UserServiceApplication.java | 10 +++++++++- userService/src/main/resources/application.yml | 9 +++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/userService/src/main/java/weatherproject/userservice/UserServiceApplication.java b/userService/src/main/java/weatherproject/userservice/UserServiceApplication.java index 408dfc6..4ba3e81 100644 --- a/userService/src/main/java/weatherproject/userservice/UserServiceApplication.java +++ b/userService/src/main/java/weatherproject/userservice/UserServiceApplication.java @@ -1,9 +1,17 @@ package weatherproject.userservice; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; -@SpringBootApplication +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.context.annotation.ComponentScan; + +@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) public class UserServiceApplication { public static void main(String[] args) { diff --git a/userService/src/main/resources/application.yml b/userService/src/main/resources/application.yml index 89507de..5cfd0c4 100644 --- a/userService/src/main/resources/application.yml +++ b/userService/src/main/resources/application.yml @@ -6,10 +6,15 @@ spring: username: username password: password jpa: + database-platform: org.hibernate.dialect.PostgreSQL94Dialect hibernate: ddl-auto: update - dialect: org.hibernate.dialect.PostgreSQL94Dialect - show-sql: true + properties: + hibernate: + jdbc: + lob: + non_contextual_creation: true + format_sql: true rabbitmq: host: localhost port: 5672