package org.osiam.addons.administration.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Bean(name = "messageSource")
    public ResourceBundleMessageSource initializeMessageSource() {
        ResourceBundleMessageSource resource = new ResourceBundleMessageSource();

        resource.setBasenames("l10n/general");

        return resource;
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/css/**").addResourceLocations("classpath:/css/");
        registry.addResourceHandler("/js/**").addResourceLocations("classpath:/js/");
        registry.addResourceHandler("/img/**").addResourceLocations("classpath:/img/");
    }
}

@@ -1076,20 +1076,112 @@
 th:/img/%22);%0A
+        registry.addResourceHandler(%22/fonts/**%22).addResourceLocations(%22classpath:/fonts/%22);%0A
     %7D%0A%7D%0A

configure fonts-directory as resource directory