摘要:
如果IDEA中配置国际化时,.properties文件没有可视化界面,则需要安装一个Resource Bundle Editor的插件 阅读全文
摘要:
UPDATE salary_rule AS sr JOIN salary_template AS st ON sr.template_id = st.id SET sr.rule_ratio = JSON_ARRAY(JSON_OBJECT('payDate', st.pay_date, 'rati 阅读全文
摘要:
select item.*, @rank := @rank + 1 AS personRank from ( select detail.entity_id, sum(detail.amount) as sumAmount from bonus_plan_calculate_detail detai 阅读全文
摘要:
@Component public class RedisUtils { @Autowired private RedisTemplate<String, Object> redisTemplate; @Autowired private ValueOperations<String, String 阅读全文
摘要:
/** * SQL注入过滤 * @param str 待验证的字符串 */ public static String sqlInject(String str){ if(StringUtils.isBlank(str)){ return null; } //去掉'|"|;|\字符 str = Str 阅读全文
摘要:
idea git的一些操作,包括push,checktout,pull都特别慢,在cmd里面很快,排除网络问题。 修改\JetBrains\IntelliJ IDEA 2020.3.2\bin目录下面的runnerw(64).exe文件名(或者删除) 阅读全文
摘要:
public void deleteFileAndDir(String filePathDir) { Path path = Paths.get(filePathDir); try { Files.walkFileTree(path, new SimpleFileVisitor<Path>() { 阅读全文
摘要:
public File zipAttachFile(String filePathDir, List<String> urlFileList, String memberId) throws Exception { filePathDir = "/home/file"; File zipFileDi 阅读全文
摘要:
public static String getClientIp() { HttpServletRequest request = HttpKit.getRequest(); String ip = request.getHeader("x-forwarded-for"); if (ip == nu 阅读全文
摘要:
SELECT i.id FROM invite_info i, shop_info s WHERE i.shop_id = s.id ORDER BY FIELD(i.id,435,432,433,436) 阅读全文