Spring Boot - Docker and Deployment
Given the following Spring Boot code snippet, what will be printed if the active profile is prod?
@Component
@Profile("dev")
public class DevService {
public DevService() {
System.out.println("DevService active");
}
}
@Component
@Profile("prod")
public class ProdService {
public ProdService() {
System.out.println("ProdService active");
}
}