diff --git a/src/main/java/cokr/xit/base/ServletCustomizer.java b/src/main/java/cokr/xit/base/ServletCustomizer.java new file mode 100644 index 00000000..65988263 --- /dev/null +++ b/src/main/java/cokr/xit/base/ServletCustomizer.java @@ -0,0 +1,19 @@ +package cokr.xit.base; + + +import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; +import org.springframework.boot.web.server.MimeMappings; +import org.springframework.boot.web.server.WebServerFactoryCustomizer; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class ServletCustomizer implements WebServerFactoryCustomizer { + @Override + public void customize(TomcatServletWebServerFactory factory) { + MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT); + mappings.add("woff", "font/woff"); + mappings.add("woff2", "font/woff2"); + mappings.add("otf", "font/otf"); + factory.setMimeMappings(mappings); + } +} diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index a718b147..72a4d3ff 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -6,14 +6,17 @@ import java.nio.file.Files; import java.nio.file.StandardCopyOption; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.system.ApplicationHome; import org.springframework.context.annotation.ImportResource; import org.springframework.core.io.ClassPathResource; +import cokr.xit.base.ServletCustomizer; import cokr.xit.base.boot.XitBaseApplication; import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.foundation.boot.Yml; +@ImportAutoConfiguration({ServletCustomizer.class}) @ImportResource("classpath:spring/context-*.xml") public class FimsApplication extends XitBaseApplication { @@ -35,6 +38,7 @@ public class FimsApplication extends XitBaseApplication { overwriteConfFile("template/disabled-parking-request.xml", serverSggCd); overwriteConfFile("intf-conf/file-job.conf", serverSggCd+"-"+profile); overwriteConfFile("intf-conf/gpki.conf", serverSggCd+"-"+profile); + } } catch (Exception e) { diff --git a/src/main/webapp/WEB-INF/jsp/login.jsp b/src/main/webapp/WEB-INF/jsp/login.jsp index 18dbd7d7..53fbb462 100644 --- a/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/src/main/webapp/WEB-INF/jsp/login.jsp @@ -68,7 +68,7 @@
+ required title="비밀번호 입력" class="typePassword required form-control inp-long" placeholder="비밀번호" autocomplete="false" />