Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.reactivespring.domain.MovieInfo;
import com.reactivespring.repository.MovieInfoRepository;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.codec.ServerSentEvent;
import org.springframework.stereotype.Service;
Expand All @@ -10,16 +11,12 @@
import reactor.core.publisher.Mono;

@Service
@AllArgsConstructor
@Slf4j
public class MoviesInfoService {


private MovieInfoRepository movieInfoRepository;

public MoviesInfoService(MovieInfoRepository movieInfoRepository) {
this.movieInfoRepository = movieInfoRepository;
}

public Flux<MovieInfo> getAllMovieInfos(){

return movieInfoRepository.findAll();
Expand Down
15 changes: 6 additions & 9 deletions movies-info-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
logging:
level:
root: info
spring:
profiles:
active: local
Copy link
Author

@javabean68 javabean68 Apr 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mongodb:
embedded:
version: 4.0.21
---
spring:
config:
activate:
on-profile: local
on-profile: "local"
data:
mongodb:
host: localhost
Expand All @@ -18,7 +19,7 @@ spring:
spring:
config:
activate:
on-profile: nonprod
on-profile: "!prod"
data:
mongodb:
host: localhost
Expand All @@ -28,13 +29,9 @@ spring:
spring:
config:
activate:
on-profile: prod
on-profile: "prod"
data:
mongodb:
host: localhost
port: 27017
database: local
---
logging:
level:
root: info