Spring boot 2.2.0 – Multipart File upload failing with error

Trying to do file upload API in spring boot application. Below controller method. public CertificateRequest uploadfileAndParse(@RequestParam("file") MultipartFile file, HttpServletRequest request){ CertificateRequest certificateRequest = new CertificateRequest(); if(!file.isEmpty()){ certificateRequest.setCity("UN"); } return certificateRequest;…

0 Comments

Swagger2: Failed to introspect Class

Try to use swagger 2 in project but getting below error. "java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration] from Class Loader //Spring Boot version: 2.1.9 //Swagger2: 2.9.2 //java: 11 package path.to.package;…

0 Comments