com.infusers.core.config.InfusersWebConfig Maven / Gradle / Ivy
package com.infusers.core.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
@Configuration
public class InfusersWebConfig implements WebMvcConfigurer {
// @Override
// public void addResourceHandlers(ResourceHandlerRegistry registry) {
// registry.addResourceHandler("/css/**") // URL path to your CSS files
// .addResourceLocations("classpath:/static/css/") // Directory where your CSS files are located
// .setCachePeriod(3600) // Cache period in seconds (optional)
// .resourceChain(true); // Enable resource chain (optional)
// }
/*@Override
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
configurer.defaultContentType(MediaType.APPLICATION_JSON);
configurer.mediaType("png", MediaType.IMAGE_PNG);
configurer.mediaType("jpeg", MediaType.IMAGE_JPEG);
configurer.mediaType("multipart/form-data", MediaType.MULTIPART_FORM_DATA);
}*/
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy