Solution next error.
In your method RESTful web service add.
@GetMapping("/public/file/{url_filename:.*}")
And create next class.
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {
@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
configurer.favorPathExtension(false).favorParameter(true);
}
}
Subscribe to:
Post Comments (Atom)
🧩 Building a Multi-Datasource Go Application
In many enterprise systems, you may need to work with multiple databases — for example, customer data in PostgreSQL, legacy records in Oracl...
.png)
-
SAML V2.0 SAML version 2.0 was approved as an OASIS Standard in March 2005. Approved Errata for SAML V2.0 was last produced by the SSTC on 1...
-
Spring Boot 3 Spring boot 3 Features : Spring Boot 3.0 will require Java 17 or later Jakarta EE 9 a new top-level jakarta package, replacin...
-
In modern applications, transient failures (e.g., network timeouts, database connection issues, or external API unavailability) are inevitab...
No comments:
Post a Comment