Question from the Spring test

How to activate a bean for all profiles except one in Spring

Medium

What does the @Profile annotation do in the following code:

@Service
@Profile("!dev")
public class AddressService {
    //...
}
Author: W3D TeamStatus: PublishedQuestion passed 160 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!