mirror of https://github.com/halo-dev/halo
parent
bae13a01f4
commit
a81f335ee8
|
@ -7,9 +7,7 @@ import freemarker.template.TemplateExceptionHandler;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.jackson.JsonComponentModule;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
|
||||
import org.springframework.data.web.SortHandlerMethodArgumentResolver;
|
||||
|
@ -45,8 +43,6 @@ import static run.halo.app.utils.HaloUtils.*;
|
|||
*/
|
||||
@Slf4j
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = "run.halo.app.controller")
|
||||
@PropertySource(value = "classpath:application.yaml", ignoreResourceNotFound = true, encoding = "UTF-8")
|
||||
public class WebMvcAutoConfiguration extends WebMvcConfigurationSupport {
|
||||
|
||||
private static final String FILE_PROTOCOL = "file:///";
|
||||
|
|
Loading…
Reference in New Issue