Skip to content

Commit

Permalink
Update application yml and application class
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 17, 2024
1 parent 1b3b6ee commit 6fccdd0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
9 changes: 7 additions & 2 deletions userService/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fccdd0

Please sign in to comment.