From a81f335ee8b6545c350fb71f9cfb0b31edc8c0e5 Mon Sep 17 00:00:00 2001 From: Gxz-NGU Date: Thu, 7 May 2020 15:20:24 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=20(#827)=20(#830)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/run/halo/app/config/WebMvcAutoConfiguration.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java b/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java index eb1246d3c..c33c2dd4f 100644 --- a/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java +++ b/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java @@ -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:///";