
java
ghost123cc
IT
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微信授权回调接口
/** * 微信授权回调接口 * * @return * @throws IOException */ @GetMapping("/authCallBack") public ResultMap authCallBack(HttpServletRequest request) throws IOException { String code = request.getParameter("code"); St.原创 2022-04-26 23:13:14 · 1815 阅读 · 0 评论 -
sprintboot 微信静默授权代码
/** * 微信授权 * * @param response * @return * @throws IOException */ @GetMapping("/getWeChat") public ResultMap getWeChat(HttpServletResponse response) throws IOException { // 1、redirect_uri设置 String redi.原创 2022-04-26 23:07:31 · 525 阅读 · 0 评论 -
java 微信支付元转分和分转元公共方法
public static String changeY2F(Double amount){ String currency = amount.toString(); int index = currency.indexOf("."); int length = currency.length(); Long amLong = 0l; if(index == -1){ amLong = Long.va.原创 2022-04-26 23:02:08 · 706 阅读 · 0 评论 -
java 配置跨域代码
@Configuration public class CorsFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain filter...原创 2021-10-29 14:53:57 · 266 阅读 · 0 评论 -
java 使用httpclient调用外部接口
/** * get 请求 * @return */ public static String doHttpGet(String url, List<NameValuePair> params){ String result = null; //1.获取httpclient CloseableHttpClient httpClient = HttpClients.createDefault(); .原创 2021-10-29 14:37:25 · 953 阅读 · 0 评论 -
Redis java 常用操作
@Slf4j @Component("redisUtils") public class RedisUtils { @Autowired private StringRedisTemplate redisTemplate; private StringRedisTemplate getRedisTemplate() { return redisTemplate; } /** -------------------key相关操作----------...原创 2021-10-24 19:34:14 · 297 阅读 · 0 评论 -
EXCEL 导出
package com.pigmis.common.utils; import com.google.common.base.Strings; import com.pigmis.utils.ReflexUtil; import lombok.Data; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.hssf.util.HSSFColor; import org.apache.poi.ss.util.CellRangeAddre原创 2021-10-24 19:32:33 · 178 阅读 · 0 评论 -
Spring Boot 集成 WebSocket
https://mp.weixin.qq.com/s/BhoJgqtpisiDtFtTG9PNpg原创 2021-06-18 23:12:33 · 98 阅读 · 0 评论