diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index b040ab98..030965ae 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -4,6 +4,7 @@ import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ImportResource; import cokr.xit.base.ServletCustomizer; @@ -12,6 +13,7 @@ import cokr.xit.fims.task.TaskMvcConfig; @ImportAutoConfiguration({ServletCustomizer.class, TaskMvcConfig.class}) @ImportResource("classpath:spring/context-*.xml") +@ComponentScan(basePackageClasses = cokr.xit.applib.HttpStatusCodeExceptionControllerAdvice.class) public class FimsApplication extends XitBaseApplication { public static void main(String[] args) {