This file contains 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
<!-- build with shade plugin --> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifestEntries> | |
<Premain-Class>com.asm_sample.app.App</Premain-Class> | |
<Can-Retransform-Classes>true</Can-Retransform-Classes> |
This file contains 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
/** | |
* java 기본 자료형의 Wrapper 클래스로 랜덤값을 구하는 클래스 | |
* | |
* @author zaccoding | |
* @date 2017. 8. 25. | |
*/ | |
public class RandomValueGenerator { | |
private static final String DEFAULT_RATIONAL_FORMAT="00.00"; | |
private static final int DEFAULT_INTEGER_RANGE = 100; | |
private static final int DEFAULT_INTEGER_START = 0; |
This file contains 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.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class ClassDescUtil { | |
private static final Logger logger = LoggerFactory.getLogger(ClassDescUtil.class); | |
public static void displayClass(Class<?> clazz) { |
This file contains 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.zaccoding.util | |
public class StringUtil { | |
public static boolean isEmpty(String value) { | |
return (value == null) || (value.length() == 0); | |
} | |
public static boolean isNotEmpty(String value) { | |
return (value != null) && (value.length() > 0); | |
} |
This file contains 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
public static String convertHtmlSpecialChars(String source) { | |
StringBuilder sb = new StringBuilder(); | |
for (int i = 0; i < source.length(); i++) { | |
char c = source.charAt(i); | |
switch (c) { | |
case '<': | |
sb.append("<"); | |
break; | |
case '>': |
This file contains 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
#set($packageName = ${PACKAGE_NAME}) | |
#if($packageName.matches("^(com.company.*)")) | |
/** | |
* | |
* @author $$ | |
* @Date ${DATE} | |
*/ | |
#else | |
/** | |
* |
This file contains 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
### class file ### | |
*.class | |
### Package Files ### | |
*.jar | |
*.war | |
*.ear | |
### Eclipse ### | |
.classpath |
This file contains 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 util; | |
import java.net.InetAddress; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.util.Enumeration; | |
/** | |
* @author zacconding |
This file contains 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.async.aop; | |
import javax.servlet.http.HttpServletRequest; | |
import lombok.extern.slf4j.Slf4j; | |
import org.aspectj.lang.ProceedingJoinPoint; | |
import org.aspectj.lang.annotation.Around; | |
import org.aspectj.lang.annotation.Aspect; | |
import org.async.util.GsonUtil; | |
import org.async.util.ServletUtil; | |
import org.springframework.stereotype.Component; |
This file contains 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.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
/** | |
* Like underscore.js .. working.. | |
* | |
* @author zacconding |
OlderNewer