Question from the Spring test

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

Easy

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

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