HTTP상태코드 지정 Exception추가

main
이범준 4 months ago
parent 78dee354c5
commit c62a7214a9

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

Loading…
Cancel
Save