skip to Main Content

Needed to filter null values from JSON response in spring boot project

public class APIService { private List<CoinDTO> coinList = new ArrayList<>(); private final TrackerConfigProperties trackerConfig; //Injecting configuration properties into the constructor. public APIService(TrackerConfigProperties trackerConfig) { this.trackerConfig = trackerConfig; } public List<CoinDTO> getCoinList() { return coinList; } public void setCoinList(List<CoinDTO> coinList) {…

VIEW QUESTION

Spring Boot can't reach localhost Mongodb

I'm following this example of creating a Spring Boot app that connects with a Mongo DB. However, when I run my application I get: Exception in monitor thread while connecting to server localhost:8081 With the following properties: spring.data.mongodb.uri=mongodb://root:example@localhost:8081/test And the…

VIEW QUESTION
Back To Top
Search