|
|
|
|
@ -28,4 +28,23 @@ public class UbiServerConfig {
|
|
|
|
|
return registrationBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* default servlet 추가 URL 패턴 매핑 설정
|
|
|
|
|
* 정적 리소스 및 파일 처리를 위한 default servlet 매핑
|
|
|
|
|
* URL 패턴: /asset/*, /files/*, /ubi4/*
|
|
|
|
|
*
|
|
|
|
|
* @return ServletRegistrationBean default servlet 등록 빈
|
|
|
|
|
*/
|
|
|
|
|
/* 추후 리포트 테스트 완료 후 재설정할 수 있음!! */
|
|
|
|
|
/*@Bean
|
|
|
|
|
public ServletRegistrationBean<org.apache.catalina.servlets.DefaultServlet> defaultServlet() {
|
|
|
|
|
ServletRegistrationBean<org.apache.catalina.servlets.DefaultServlet> registrationBean =
|
|
|
|
|
new ServletRegistrationBean<>(new org.apache.catalina.servlets.DefaultServlet(),
|
|
|
|
|
"/asset/*", "/files/*", "/ubi4/*");
|
|
|
|
|
|
|
|
|
|
registrationBean.setName("default");
|
|
|
|
|
registrationBean.setLoadOnStartup(1); // 서버 시작 시 로드
|
|
|
|
|
|
|
|
|
|
return registrationBean;
|
|
|
|
|
}*/
|
|
|
|
|
}
|