![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
qq_40278285
这个作者很懒,什么都没留下…
展开
-
spring-kafka消费监听程序原理
spring-kafka消费原理原创 2022-08-19 10:54:28 · 1095 阅读 · 0 评论 -
JAVA基础
JAVA基础线程池线程池7大参数线程池线程池7大参数corePoolSize:核心线程数,线程空闲时也不会销毁,除非设置允许销毁maximumPoolSize:最大线程数,最多允许这么多线程允许,在这些线程空闲之后会根据线程存活时间过期而消亡keepAliveTime:线程存活时间,指超过核心线程数的空闲线程,超过这个时间就会被销毁unit:线程存活时间单位workQueue:工作队列。指任务的提交超过最大线程数,那么剩余的任务就会被放入队列threadFactory:线程工厂,指创建线程原创 2021-10-15 10:33:04 · 122 阅读 · 0 评论 -
JAVA泛型区
泛型方法使用示例 /** * 根据默认的泛型类型,获取数组的值 * * @param index 数组索引 * @param os 数组信息 * @return */ private <T> T getObjArrValue(int index, Object[] os, T defaultValue) { if (index >= os.length) { return null原创 2021-09-15 09:53:23 · 75 阅读 · 0 评论 -
SpringBoot-FTP操作
SpringBoot-FTP操作package com.zkteco.zkbiosecurity.pers.utils;import com.zkteco.zkbiosecurity.base.utils.Base64Util;import com.zkteco.zkbiosecurity.pers.service.OtherFtpService;import com.zkteco.zkbiosecurity.pers.service.impl.OtherFtpServiceImpl;impor原创 2021-09-14 15:22:31 · 969 阅读 · 0 评论 -
fremarker 基础
fremarker 基础springboot 基础配置server: port: 8088 #服务端口 servlet: context-path: /test-freemarkerspring: application: name: test-freemarker #指定服务名 freemarker: request-context-attribute: rc #把Spring的RequestContext对象暴露为变量rc expose-requ原创 2021-04-21 10:56:16 · 72 阅读 · 0 评论 -
Springboot那些事
Springboot常用配置OncePerRequestFilter 类拦截器能够确保在一次请求只通过一次filter,而不需要重复执行可用于 Token 拦截并解析等@PostConstruct@PostConstruct该注解被用来修饰一个非静态的void()方法。被@PostConstruct修饰的方法会在服务器加载Servlet的时候运行,并且只会被服务器执行一次。 PostConstruct在构造函数之后执行,init()方法之前执行。通常我们会是在Spring框架中使用原创 2021-03-27 15:50:45 · 169 阅读 · 0 评论 -
微信支付之H5
微信支付之H5申请用户授权 @GetMapping("/getWxAuthCode") public String getWxAuthCode() throws UnsupportedEncodingException { // 这里重定向到微信授权服务器 return "redirect:" + WxUtil.getWxAuthCode(); }服务器接收到用户授权的Code根据用户授权code获取用户的openid,跳转到服务统一下单地址原创 2021-03-25 16:58:56 · 226 阅读 · 0 评论