All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infusers.core.config.InfusersWebConfig Maven / Gradle / Ivy

There is a newer version: 2024.12.0008
Show newest version
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