Loading

随笔分类 -  java

摘要:好久不写博客了,回忆回忆一下Java枚举 > enum 关键字来定义,各个常量使用逗号 , 来分割 package cn.tina.enums; import java.util.Arrays; /** * 根据不同日期查询数据拼接SQL * * @author Tina * @version 1. 阅读全文
posted @ 2022-01-25 11:58 TinaRoot 阅读(47) 评论(0) 推荐(0)
摘要:单线程: 10000次测试生成ID RandomUtilIDWorkerNoCenter 第一次 0.187s 0.036s 0.324s 第二次 0.121s 0.05s 0.305s 第三次 0.131s 0.036s 0.283s 100000次测试生成ID RandomUtilIDWorke 阅读全文
posted @ 2020-11-20 17:37 TinaRoot 阅读(495) 评论(0) 推荐(0)
摘要:List<PgMenu> pgMenuList = pgMenuMapper.selectList(wrapper); List<PgMenu> collect = pgMenuList.stream().filter(PgMenu -> PgMenu.getState() != 2).collec 阅读全文
posted @ 2020-05-23 11:40 TinaRoot 阅读(3463) 评论(0) 推荐(0)
摘要:错误 useSSL 修改成 false 现在启动成功 (写者的项目快上线了,欢迎大家加入开发)gitee-> https://gitee.com/pig_farmer_x/pigs-blog.git 阅读全文
posted @ 2020-04-20 22:45 TinaRoot 阅读(692) 评论(0) 推荐(0)
摘要:org.springframework.data.redis.connection.PoolException: Returned connection io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl@26300d0a was e 阅读全文
posted @ 2020-04-10 10:26 TinaRoot 阅读(7746) 评论(1) 推荐(0)
摘要:依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency><dependency> <groupId> 阅读全文
posted @ 2020-04-08 21:08 TinaRoot 阅读(739) 评论(0) 推荐(0)
摘要:需要开启 el isELIgnored="false" 这时已经可以正常访问了 阅读全文
posted @ 2020-03-02 14:47 TinaRoot 阅读(160) 评论(0) 推荐(0)
摘要:/** * * AdminEntity 管理员实体类 * getAdminId 获取管理员实体类中的id * */ @Testvoid adminIdList () { List<AdminEntity> adminEntityList = adminService.queryAdminInfoAl 阅读全文
posted @ 2020-02-22 03:27 TinaRoot 阅读(12566) 评论(0) 推荐(1)
摘要:ServletContext context = request.getServletContext();/** * 从ServletContext中获取计数器对象 */Integer count = (Integer) context.getAttribute("counter");/** * 如 阅读全文
posted @ 2020-02-20 22:01 TinaRoot 阅读(1901) 评论(0) 推荐(0)