- 博客(20)
- 收藏
- 关注
原创 Caused by: java.net.NoRouteToHostException: No route to host (Host unreachab
数据库服务IP不可达。
2024-05-31 17:39:52 443
原创 Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException
解决办法:修改表新增权限。
2024-05-27 17:49:48 136
原创 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link
MySQL启动报错:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link解决办法:修改my.cnf:wait_timeout=3536000interactive_timeout=3536000
2024-05-27 14:02:19 124
原创 中文取首字母,中文转拼音
中文取首字母,中文转拼音其中需要用到一个jar包:pinyin4j.jar下载链接:http://central.maven.org/maven2/com/belerweb/pinyin4j/2.5.1/pinyin4j-2.5.1.jarpom文件:com.belerwebpinyin4j2.5.1工具类代码:import net.sourceforge.pinyin4j.PinyinHelper;import net.sourceforge.pinyin4j.format.Hany
2020-12-23 10:45:15 161 1
原创 stream对集合对象多条件或单条件排序
stream对集合对象多条件或单条件排序List<MemberRecruitMonthStoreDomain> MemberRecruitList = convertMemberRecruitList.stream().sorted(Comparator.comparing(MemberRecruitMonthStoreDomain::getStoreCode) .thenComparing(MemberRecruitMonthStoreDomain::ge
2020-07-27 12:00:43 1444
原创 微信卡包新增入口跳转小程序
微信卡包新增入口跳转小程序新增或者修改会员卡字段https://api.weixin.qq.com/card/update?access_token=token{ "card_id": "pEVBpxI6Fb7xqUUfrTiD738NZht4", "member_card": { "custom_field2": { "url": "http://baidu.com", "name": "到家小程序",
2020-07-07 17:21:39 990
原创 笔记
## 杂乱笔记 @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") @ApiModelProperty(notes = "制卡申请时间(默认创建时间)") private Date applyTime;
2020-06-24 16:39:31 103
原创 FTP java工具代码
FTP java工具代码<--代码有些方法没改过有坑,抄过去的朋友注意一下-->import org.apache.commons.io.IOUtils;import org.apache.commons.lang3.StringUtils;import org.apache.commons.net.ftp.FTPClient;import org.apache.commons.net.ftp.FTPFile;import org.apache.commons.net.ftp.F
2020-06-18 18:37:34 127
原创 mybatis多条件对象查询
mybatis多条件对象查询这个为 Mapper List<ListCardPagingResponse> cardStockPagingByStoreCode(@Param("cardPagingRequest") CardPagingRequest cardPagingRequest, @Param("storeCodeList") List<String> storeCodeList);<select id="cardStockPagingByStoreCod
2020-06-17 18:12:28 879
原创 stream循环匹配合并list,根据共同字段合并集合
stream循环匹配合并list,根据共同字段合并集合```java public static void main(String[] args) { List<MemberInformationDomain> memberInformationDomainList = Lists.newArrayList(); //会员卡信息数据 List<MemberInfoNumDomain> memberInfoNumDomainList
2020-06-11 11:27:16 4044 1
原创 stream()循环对象赋值多字段
}//下载原文件List stringList = Lists.newArrayList();if (!CollectionUtils.isEmpty(stringList)) {stringList.stream().forEach(response -> {response.setUploadCode("");response.setUploadCode("");});return stringList;} else {throw new BusinessException(5
2020-06-09 11:41:17 7908 2
原创 微信接口请求工具restTemplate
斜体样式**restTemplate发送get请求示例:AccessTokenRequest accessTokenRequest = new AccessTokenRequest(); accessTokenRequest.setCorporationCode(corporationCode); accessTokenRequest.setPlatform(Pl...
2019-12-13 15:24:52 933 1
原创 微信接口请求工具httpClien
微信卡包接口请求工具httpClient发微信卡包请求会很多异常,不建议使用,用来简单的测试可以Spring自带的https请求工具restTemplate一般不会出现请求异常package cn.itxl.utils;Simport java.io.IOException;import java.security.GeneralSecurityException;import jav...
2019-12-13 15:15:20 684 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人