Skip to content

Commit

Permalink
removes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Aug 22, 2024
1 parent 429255f commit bf08657
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 52 deletions.
16 changes: 8 additions & 8 deletions r2dbc/boot-reactive-cache/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
services:
postgres:
container_name: postgres_local_db
image: postgres
container_name: postgres_movie_db
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: moviesDB
POSTGRES_USER: appuser
POSTGRES_PASSWORD: secret
POSTGRES_DB: appdb
ports:
- "5432:5432"
volumes:
- local_dev:/var/lib/postgresql/data
redis:
container_name: redis_local_db
image: "redis/redis-stack:latest"
container_name: redis_movie_db
image: redis/redis-stack:latest
ports:
- "6379:6379"
- "8001:8001"
environment:
- REDIS_REPLICATION_MODE=master
volumes:
local_dev:
local_dev:
21 changes: 11 additions & 10 deletions r2dbc/boot-reactive-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.cache</groupId>
<artifactId>boot-reactive-cache</artifactId>
<artifactId>boot-r2dbc-reactive-cache</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>boot-reactive-cache</name>
<description>boot-reactive-cache</description>
<description>boot-r2dbc-reactive-cache</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -87,6 +87,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-r2dbc</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
</dependency>

<dependency>
<groupId>org.postgresql</groupId>
Expand All @@ -99,14 +107,7 @@
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webflux-ui</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
spring.application.name=boot-reactive-cache
spring.jmx.enabled=false
spring.webflux.problemdetails.enabled=true

server.port=8080
server.shutdown=graceful
spring.main.allow-bean-definition-overriding=true
spring.jmx.enabled=false
spring.mvc.problemdetails.enabled=true

################ Actuator #####################
management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus
management.endpoint.health.show-details=always

################ Database #####################
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.data.jpa.repositories.bootstrap-mode=deferred
spring.datasource.hikari.auto-commit=false
spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name}
spring.jpa.hibernate.ddl-auto=none
#spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
spring.jpa.properties.hibernate.generate_statistics=false
spring.jpa.properties.hibernate.jdbc.batch_size=25
spring.jpa.properties.hibernate.order_inserts=true
spring.jpa.properties.hibernate.order_updates=true
spring.jpa.properties.hibernate.query.fail_on_pagination_over_collection_fetch=true
spring.jpa.properties.hibernate.query.in_clause_parameter_padding=true
spring.jpa.properties.hibernate.query.plan_cache_max_size=4096
spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.flyway.locations=classpath:/db/migration/{vendor}

###### Docker Compose Configuration ######
spring.docker.compose.lifecycle-management=start_and_stop
spring.docker.compose.file=${user.dir}/r2dbc/boot-reactive-cache/compose.yaml
#spring.docker.compose.skip.in-tests=false
spring.docker.compose.skip.in-tests=true
#spring.docker.compose.profiles.active=dev

This file was deleted.

0 comments on commit bf08657

Please sign in to comment.