- abbreviation: *
- Template text:
* * $END$ * * @author yanganyu * @date $date$ $time$ $params$
- @return {@code
$returnValue$ }
import cn.afterturn.easypoi.excel.ExcelExportUtil; | |
import cn.afterturn.easypoi.excel.ExcelImportUtil; | |
import cn.afterturn.easypoi.excel.entity.ExportParams; | |
import cn.afterturn.easypoi.excel.entity.ImportParams; | |
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType; | |
import cn.afterturn.easypoi.excel.entity.result.ExcelImportResult; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.poi.ss.usermodel.Workbook; | |
import org.springframework.web.multipart.MultipartFile; |
^(?:[\t ]*(?:\r?\n|\r))+ |
/** | |
* cool retrying | |
* | |
* @author yanganyu | |
* @date 2021/3/9 | |
*/ | |
@Slf4j | |
public class CoolRetrying<T> { | |
/** | |
* 重试次数 |
/** | |
* Cons | |
* | |
* @author yanganyu | |
* @date 2019/11/12 23:57 | |
*/ | |
public class Cons<L, R> { | |
private L left; | |
private R right; |
mvn --settings E:\ install:install-file "-DgroupId=com.oracle" "-DartifactId=ojdbc6" "-Dversion=11.2.0.1.0" "-Dpackaging=jar" "-Dfile=C:\" "-Dmaven.repo.local=E:\" |
/** | |
* 分批查询 | |
* | |
* <p> | |
* sql中copy以下代码: | |
* <pre>{@code | |
* <if test="begin != null and pageSize != null"> | |
* limit #{begin}, #{pageSize} | |
* </if> | |
* }</pre> |
*
* $END$
*
* @author yanganyu
* @date $date$ $time$
$params$
# windows文件转Linux文件 | |
dos2unix a.txt | |
# 处理并生成新文件(先trim每行) | |
cat a.txt | awk '{$1=$1;print}' | grep -E '^[A-Za-z]{2,}$' > b.txt |
<templateSet group="user"> | |
<template name="odc" value="<choose> <when test="orderByClause != null"> order by ${orderByClause} </when> <otherwise> $CLIPBOARD$ </otherwise> </choose>" description="" toReformat="true" toShortenFQNames="true"> | |
<variable name="CLIPBOARD" expression="clipboard()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="SQL_STATEMENT" value="true" /> | |
<option name="SQL_STATEMENT_MEMSQL" value="true" /> | |
<option name="SQL_STATEMENT_MYSQL" value="true" /> | |
</context> | |
</template> | |
<template name="odcx" value="<if test="orderByClause != null"> order by ${orderByClause} </if>" description="" toReformat="false" toShortenFQNames="false"> |
public void sendMsg(Map<String, String> headerMap, ...) | |
rabbitTemplate.convertAndSend(exchange, routingKey, msg, | |
message -> { | |
for (Map.Entry<String, String> entry : headerMap.entrySet()) { | |
message.getMessageProperties().setHeader(entry.getKey(), entry.getValue()); | |
} | |
return message; | |
}) |