From d2f49d78b63306a0b76e99d508d09cdd3b6d8fd8 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 27 Mar 2024 17:06:09 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B0=EC=BA=A3=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(=ED=8F=B0=ED=8A=B8=20=EC=9D=91=EB=8B=B5=20mi?= =?UTF-8?q?me=ED=83=80=EC=9E=85=20=EC=88=98=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/base/ServletCustomizer.java | 19 +++++++++++++++++++ .../java/cokr/xit/fims/FimsApplication.java | 4 ++++ src/main/webapp/WEB-INF/jsp/login.jsp | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/main/java/cokr/xit/base/ServletCustomizer.java 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" />