ResourceConfig.java 526 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
package com.roshka;

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

@Configuration
public class ResourceConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
Amparo Oliver committed
11
        registry.addResourceHandler("/uploadsBirthday/**").addResourceLocations("file:./uploadsBirthday/");
12 13
    }
}