java List Stream 순회 샘플 코드
List<String> newList = list.stream().map(StringUtil::trim).collect(Collectors.toList()); * 참고 링크 Java 스트림 Stream (1) 총정리
List<String> newList = list.stream().map(StringUtil::trim).collect(Collectors.toList()); * 참고 링크 Java 스트림 Stream (1) 총정리
org.springframework.test.util.ReflectionTestUtils.setField(obj, “fieldName01”, fieldValue01);
import java.util.List; import org.apache.ibatis.cache.CacheKey; import lombok.extern.slf4j.Slf4j; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; /** * MyBatis EHCache 관련 유틸 클래스 * * – mapperId + statementId 에 대하여 exactly equals 가 아니라 contains 임에 주의 * * @author STEVE */ @Slf4j public class MyBatisCacheUtil { /** * MyBatis 쿼리 캐시 제거 * * @param mapperId (e.g. “com.example.repository.UserRepository”) *… Read More »
1. pom.xml <dependency> <groupId>org.mybatis.caches</groupId> <artifactId>mybatis-ehcache</artifactId> <version>1.2.1</version> </dependency> 2. MyBatis 각 mapper xml <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE mapper PUBLIC “-//mybatis.org//DTD Mapper 3.0//EN” “http://mybatis.org/dtd/mybatis-3-mapper.dtd”> <mapper namespace=”com.tachyon.api.repository.NewsRepository”> <!– MyBatis ehcache 설정 – http://mybatis.org/ehcache-cache/ –> <cache type=”org.mybatis.caches.ehcache.EhcacheCache”> <!– <cache type=”org.mybatis.caches.ehcache.EhBlockingCache”> –><!– blocking cache를 사용할 경우 –> <property name=”timeToIdleSeconds” value=”3600″/><!–1 hour–> <property name=”timeToLiveSeconds” value=”3600″/><!–1 hour–> <property name=”maxEntriesLocalHeap” value=”1000″/> <property… Read More »
* 구라 제거기 * 모두의 프린터
echo off REM setting directories and file names SET BACKUP_SRC_01=C:\Dev\eclipse-jee-2019-06-R-win32-x86_64\workspace\pdf-converter-openhtmltopdf SET BACKUP_SRC_02=C:\Users\STEVE\git SET BACKUP_SRC_03=D:\SQL SET BACKUP_TARGET=D:\Backup\workspace SET BACKUP_FILENAME_PREFIX=workspace for /f “tokens=2 delims==” %%I in (‘wmic os get localDATETIME /format:list’) do set DATETIME=%%I set DATETIME=%DATETIME:~0,8%%DATETIME:~8,4% REM executing BandiZip “C:\Program Files\Bandizip\Bandizip.exe” c -y -ex:”.git;target;node_modules” %BACKUP_TARGET%\%BACKUP_FILENAME_PREFIX%_%DATETIME%.zip %BACKUP_SRC_01% %BACKUP_SRC_02% %BACKUP_SRC_03% REM open target directory start %BACKUP_TARGET% * 현재로서는 -ex… Read More »
https://sanghaklee.tistory.com/47
https://yoshikixdrum.tistory.com/200
폴더 우클릭 > 속성 > 사용자 지정 > ‘다음에 대해 이 폴더 최적화 항목’을 ‘일반 항목’ 으로 변경한다.
1. pom.xml <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <!– Spring 혹은 Terasoluna 에 최신버전이 내장되어 있어서 버전을 지정하지 않았었음. 아마 2.10.x 버전인듯 –> </dependency> 2. ehcache.xml <?xml version=”1.0″ encoding=”UTF-8″?> <ehcache xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”http://ehcache.org/ehcache.xsd” updateCheck=”false”> <!– * 속성 설명 (출처: https://javacan.tistory.com/entry/133) – maxElementsInMemory: 메모리에 저장될 수 있는 객체의 최대 개수 (필수) – eternal: 이 값이 true이면 timeout 관련 설정은… Read More »
https://news.naver.com/main/ranking/read.nhn?mid=etc&sid1=111&rankingType=popular_day&oid=028&aid=0002489916&date=20200319&type=1&rankingSeq=10&rankingSectionId=103
원래는 이클립스의 Run/Debug 내의 각 Test profile에서 VM arguments 에 셋팅을 한다고 생각했었으나, Spring Boot 의 경우에는 application.properties 의 설정이 우선하는 것을 알게 됨. * application.properties 샘플 logging.config=classpath:logback-custom.xml
https://kys544.tistory.com/316
http://blog.stevenlevithan.com/archives/date-time-format * 용례) ‘201910101458125’ => new Date().format(‘yyyymmddHHMMssl’);
https://stackoverflow.com/questions/276927/can-i-concatenate-multiple-mysql-rows-into-one-field
https://github.com/coreui/coreui-icons
https://www.extendoffice.com/documents/excel/4321-excel-activate-hyperlinks.html
* table 태그에 아래의 스타일 추가 table-layout:fixed * td 태그에 아래의 스타일 추가 word-wrap:break-word
https://brunch.co.kr/@imagineer/215
bootstrap 4.1 기준으로, .modal-dialog 클래스가 있는 엘리먼트에 modal-dialog-centered 클래스를 추가해 주면 된다.