我正在将 swagger UI 与 Spring boot 应用程序集成。当我点击 swagger-ui.html 时。我收到 404 错误。我的配置类如下:
@Configuration
@EnableSwagger2
//@Import(SwaggerConfiguration.class)
public class SwaggerConfig {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build();
}
...
Run Code Online (Sandbox Code Playgroud)
错误信息:
{"status":404,"message":"HTTP 404 Not Found","link":"https://jersey.java.net/apidocs/2.8/jersey/javax/ws/rs/NotFoundException.html"}
Run Code Online (Sandbox Code Playgroud) 我有一个 spring boot 应用程序,其中包含一些 kafka 提供者/消费者和一些集成测试(使用嵌入式 kafka)。一切正常,直到我将 spring boot 版本提升到 2.3(从 2.1.x)和 spring-kafka 到 2.6.0。
现在我收到以下异常: io.confluent.common.config.ConfigException: Invalid value for configuration schema.registry.ssl.engine.factory.class: Class could not be found.
该错误出现在尝试构建消费者时。我使用的是自定义的KafkaAvroDeserializer与MockSchemaRegistryClient该抱怨上述财产。
是否有必须设置的属性或之前有人遇到过此问题并有解决方案?
谢谢!
java spring-boot spring-kafka confluent-schema-registry embedded-kafka