- 添加pattern: "\b(todo|fixme)!.*"
- 添加filter: 选择刚配置的pattern,命名mine
- todo视图中筛选mine
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
/** | |
* 时间转换配置 | |
* | |
* @author yanganyu | |
* @date 2019/9/23 17:05 | |
*/ | |
@Configuration | |
public class DateConvertConfig { | |
/** | |
* LocalDate转换器,用于转换RequestParam和PathVariable参数 |
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
Integer exist(Map<String, Object> paramMap); |
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
/** | |
* AES utility | |
* | |
* @author yanganyu | |
* @date 2019/9/18 21:01 | |
*/ | |
public class AesUtil { | |
private static SecretKeySpec secretKey; | |
private AesUtil() { |
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
response.setContentType("text/plain; charset=UTF-8"); | |
String encodedFileName = new String("中文".getBytes(), StandardCharsets.ISO_8859_1); | |
response.addHeader("Content-Disposition","attachment; filename=" + encodedFileName); |
- add maven dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
- modify application.properties(.yml)
- springboot1
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
/** | |
* 哈希取余 | |
* | |
* @param key 要处理的字符串 | |
* @param prime 质数 | |
* @return 余数([0, prime - 1]中的整数) | |
* @author yanganyu | |
* @date 2019/7/17 10:02 | |
*/ | |
public static int hashcodeMod(String key, int prime) { |
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
/** | |
* 对象更新比较器 | |
* | |
* @param <T> 待比较的对象类型 | |
* @author yanganyu | |
* @date 2019/7/26 | |
*/ | |
public final class UpdateDiffer<T> { | |
/** | |
* 原来的对象 |
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
/** | |
* 提供一些构造spring的ThreadPoolTaskExecutor的静态工厂方法,模仿JDK中的Executors | |
* | |
* @author yanganyu | |
* @date 2019/8/21 16:23 | |
*/ | |
public class SpringExecutors { | |
private SpringExecutors() { | |
} |