톰캣설정 수정(폰트 응답 mime타입 수정)

main
이범준 8 months ago
parent 76c81a1c7a
commit d2f49d78b6

@ -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<TomcatServletWebServerFactory> {
@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);
}
}

@ -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) {

@ -68,7 +68,7 @@
</div>
<div class="input-group input-group-merge mt-2">
<input type="password" id="password"
required title="비밀번호 입력" class="typePassword required form-control inp-long" placeholder="비밀번호" autocomplete />
required title="비밀번호 입력" class="typePassword required form-control inp-long" placeholder="비밀번호" autocomplete="false" />
<span class="input-group-text cursor-pointer"><i class="bx bxs-lock"></i></span>
</div>
<div class="input_wrap2">

Loading…
Cancel
Save