This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.antop.board.common.exposed | |
| import kotlinx.serialization.encodeToString | |
| import kotlinx.serialization.json.Json | |
| import org.jetbrains.exposed.sql.Column | |
| import org.jetbrains.exposed.sql.ColumnType | |
| import org.jetbrains.exposed.sql.Table | |
| /** | |
| * Set<String> ↔︎ JSON 타입 매핑 (내부는 []) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import aop.SmsLimit | |
| import org.springframework.stereotype.Service | |
| @Service | |
| class HciService(private val hciClient: HciFeignClient) { | |
| @SmsLimit(key = "#tel") | |
| fun sendSms(tel: String, content: String) { | |
| // do something | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.antop.billiardslove; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; | |
| public class DispatcherServlet extends FrameworkServlet { | |
| @Override | |
| protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| // implements | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.web.filter.CharacterEncodingFilter; | |
| public class EucKrEncodingFilter extends CharacterEncodingFilter { | |
| public EucKrEncodingFilter() { | |
| setEncoding("EUC-KR"); | |
| setForceEncoding(true); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.lingala.zip4j.ZipFile; | |
| import net.lingala.zip4j.model.ZipParameters; | |
| import net.lingala.zip4j.model.enums.EncryptionMethod; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.UUID; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.antop.rest; | |
| import org.antop.rest.model.Doctor; | |
| import javax.xml.bind.JAXBContext; | |
| import javax.xml.bind.JAXBException; | |
| import javax.xml.bind.Marshaller; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.taglibs.standard.tag.common.core.ParamParent; | |
| import org.apache.taglibs.standard.tag.common.core.ParamSupport; | |
| import org.apache.taglibs.standard.tag.common.core.UrlSupport; | |
| import javax.servlet.jsp.JspException; | |
| import javax.servlet.jsp.JspTagException; | |
| import javax.servlet.jsp.tagext.BodyTagSupport; | |
| import java.io.IOException; | |
| public class PagingTag extends BodyTagSupport implements ParamParent { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.seerooinfo.fixedtag.spring.config; | |
| import org.apache.catalina.connector.Connector; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer; | |
| import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 주의! InputStream 으로 파일 타입을 파악하면 파이트를 갉아먹는다. | |
| // 원본보다 복사되는 파일의 용량이 작아짐! | |
| // content type | |
| String contentType = new Tika().detect(savedPath); | |
| if (StringUtils.isEmpty(contentType)) { | |
| contentType = fo.getContentType(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | |
| import org.springframework.boot.web.servlet.server.ServletWebServerFactory; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| public class ContainerConfig { | |
| @Bean | |
| public ServletWebServerFactory servletContainer() { |
NewerOlder