@Enable and @Auto
@Conditional
@Conditional(ClassName.class) @ConditionalOnProperty @ConditionalOnBean @ConditionalOnExpression @ConditionalOnClass @ConditionalOnJava @ConditionalOnWarDeployment @ConditionalOnResource @ConditionalOnWebApplication
Run random port
Using @SpringBootTest(webEnvironment=RANDOM_PORT)
or: setting server.port=0 (work in non-test env)
A profile expression allows for more complicated profile logic to be expressed, for example “p1 & p2”
(a & b) | c” or “a & (b | c)
@Profile({“a”, “!b”})
equivalent to @Profile(“a | !b”)
HttpMessageConverter
Strategy interface that specifies a converter that can convert from and to HTTP requests and responses.