Make JSON-B auto-config back of if no JSON-P implementation is available

Closes gh-14675
pull/14460/merge
Andy Wilkinson 6 years ago
parent 8ee4c5e4a1
commit ad647ba073

@ -34,7 +34,9 @@ import org.springframework.context.annotation.Configuration;
*/
@Configuration
@ConditionalOnClass(Jsonb.class)
@ConditionalOnResource(resources = "classpath:META-INF/services/javax.json.bind.spi.JsonbProvider")
@ConditionalOnResource(resources = {
"classpath:META-INF/services/javax.json.bind.spi.JsonbProvider",
"classpath:META-INF/services/javax.json.spi.JsonProvider" })
public class JsonbAutoConfiguration {
@Bean

Loading…
Cancel
Save