Spring Boot - Spring Annotations
A developer writes:
But the bean is created even when the active profile is 'dev'. What is the likely mistake?
@Profile("prod")
@Bean
public DataSource dataSource() { return new DataSource(); }But the bean is created even when the active profile is 'dev'. What is the likely mistake?
