We have a sample Spring boot application which stores user data in MongoDB and we are using Rest services to retrieve data
First there is a domain class i.e. POJO
@Document
public class User{
@Id
private String id;
private String name;
}
A corresponding repository based on ...
When we use @SpringApplicationConfiguration it will use configuration from application.yml [properties] which in certain situation is not appropriate. So to override the properties we can use @TestPropertySource annotation.
@TestPropertySource(
properties = {
"spring...