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
| /* | |
| * @Param String className; | |
| * | |
| * @Param Map<String> field; java 파일을 생성하는 함수 | |
| */ | |
| public static void createClass(String className, Map<String, String> fields) | |
| throws IOException { | |
| StringBuilder builder = new StringBuilder(); | |
| String packageName; |
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 java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.apache.poi.hwpf.HWPFDocument; | |
| import org.apache.poi.hwpf.usermodel.Range; |
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 config; | |
| import org.springframework.context.MessageSource; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.support.ReloadableResourceBundleMessageSource; | |
| import org.springframework.util.StringUtils; | |
| import org.springframework.web.servlet.LocaleResolver; | |
| import org.springframework.web.servlet.ViewResolver; |
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 loggerTest; | |
| import static com.google.common.base.Preconditions.*; | |
| import static java.lang.System.err; | |
| public class GuavaTest1 { | |
| private final boolean initialzed = false; | |
| public void testForNonNullArgument(final String parameter) | |
| { | |
| final String localPrameter = checkNotNull(parameter, "null값은" |
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 test; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.*; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: jins |
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 java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| import java.util.Date; | |
| /** | |
| * | |
| * User: jins | |
| * Date: 14. 3. 18 |
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 thex; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.PrintWriter; | |
| /* | |
| * 동기화 처리를 위한 IO Wrapper | |
| * |
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 java8; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Test8 { | |
| public static void main(String ar[]){ | |
| List<String> list = new ArrayList<>(); | |
| list.add("하이트"); |
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
| apply plugin: 'java' | |
| apply plugin: 'war' | |
| apply plugin: 'eclipse' | |
| apply plugin: 'eclipse-wtp' | |
| apply plugin: 'jetty' | |
| sourceCompatibility = 1.7 | |
| targetCompatibility = 1.7 | |
| compileJava.options.encoding = 'UTF-8' |
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 test0911; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.net.HttpURLConnection; | |
| import java.net.InetSocketAddress; | |
| import com.sun.net.httpserver.HttpExchange; | |
| import com.sun.net.httpserver.HttpHandler; | |
| import com.sun.net.httpserver.HttpServer; |
OlderNewer