自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(149)
  • 资源 (3)
  • 收藏
  • 关注

原创 java8 List对象根据时间排序

java8 List对象根据时间排序直接上代码rewardModelList 是我本地的 一个list ==List<实体> DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-...

2019-05-14 21:00:52 23087 6

原创 Java面试题分享

大家在找工作的的时候总是会看对应专业的面试题,java方面的更是层出不穷。网络搜寻也很多,不知道看那个好。我在这里分享我在找工作和平常会复习的一套面试题。是之前在csdn的一个博主星球下载的。分得比较细致,讲解的也比较好。希望对大家有所帮助!

2024-03-09 14:54:42 461

原创 python3.0 安装后再 cmd下弹win10应用商店的问题

安装了最新的python安装包后,再cmd上输入:python --version 无效, 然后输入 python 后弹出商店。看了很多解决办法都是编辑用户环境变量,将这个python的环境变量放在windowsApps上面,尝试了很多次还是无效的。记得放到WindowsApps 上面,点击确定后解决。

2023-10-08 15:12:04 214

原创 Maven打包错误: updates are forced and ‘parent.relativePath‘ points at wrong local POM

'version' contains an expression but should be a constant

2023-07-07 15:09:19 3655

原创 maven:解决‘parent.relativePath‘ of POM xxx points at instead of please verify your project structure

1、默认我们不用写,那默认值就是 …/pom.xml,会从本地路径中获取parent的pom!默认顺序:relativePath > 本地仓库 > 远程仓库。2、 指定了relativePath,但值是空的,设定一个空值将始终从仓库中获取,不从本地路径获取.这个报警其实可以忽略,但是作为强迫症的同学来说真的很不习惯!在pom.xml 的 标枪加上。

2023-03-24 15:26:01 1240 1

原创 java:springboot 整理webSocket

java:springboot 整理webSocket

2022-11-22 14:34:51 725

原创 JAVA: Java.lang.IllegalStateException javax.websocket.server.ServerContainer not availableJ

java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available

2022-11-10 16:13:10 3768 3

原创 mysql : Too many connections

mysql : Too many connections

2022-11-07 12:53:17 405

原创 mariadb Access denied for user ‘root‘@‘localhost‘

mariadb Access denied for user 'root'@'localhost'

2022-09-02 17:35:46 935

原创 eth2.0 : lighthouse + Prometheus 安装并自启动

eth2.0 : lighthouse + Prometheus 安装并自启动

2022-08-26 11:44:03 465

原创 Go 定时任务执行-cron

golang 定时任务执行

2022-08-23 21:32:09 1241

原创 Go 结合Gin导出Mysql数据到Excel表格

Go 结合Gin导出Mysql数据到Excel表格

2022-07-28 16:36:06 1955

原创 Go 使用 freecache 缓存

Go 使用 freecache 缓存

2022-07-27 16:08:43 1014

原创 Go 使用mencached缓存

Go 整合mencached缓存

2022-07-27 12:06:01 537

原创 golang : Zap日志整合

golang : zap日志整合

2022-07-25 11:00:16 868

原创 java: java.nio.charset.MalformedInputException: Input length = 1

java.nio.charset.MalformedInputException: Input length = 1

2022-06-29 10:25:28 511

原创 golang: sarama 链接Kafka

golang 链接kafka

2022-06-23 17:18:46 941

原创 golang: Gorm配置Mysql多数据源

golang: Gorm配置Mysql多数据源

2022-06-21 17:34:25 4605

原创 java :java.nio.charset.MalformedInputException: Input length = 1

用迷离的舞步,跟随着最后一丝月光的脚步1、问题背景 ------今天在启动项目报如下错误: java :java.nio.charset.MalformedInputException: Input length = 1 2、问题原因编码问题,导致idea编辑器读取yml文件失败3、问题解决3.1、改变编码格式为:utf-8 idea编辑器:file>settting>editor>encodings 3.2 上述方法还报错后,直接删除yml的中.

2022-05-23 18:02:29 823

原创 go : go 简易接入kafka

没有行动,懒惰就会生根发芽!!!具体代码在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/tree/master/go_kafka1、写在前面本篇代码基本是ctrl+v 工程,原文代码是:https://www.shouxicto.com/article/334.html万分感谢前辈提供的帮助,写着一篇主要是做一个自己的记录,同时看代码的时候理解代码才是自己的东西!!!2、需要的环境2.1、kafkakafka 安装和使用在.

2022-05-19 15:05:02 871

原创 go : go gin返回JSON数据

吃别人吃不了的苦,忍别人受不了的气,付出比别人更多的,才会享受的比别人更多 !!!具体代码在: https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/tree/master/go_web_gin1、其他写在前面其他代码可以参考我上一篇文章:https://blog.csdn.net/bei_FengBoby/article/details/1248470782、gin返回Json代码 Bool := IsExistUser(name).

2022-05-18 18:21:14 1509

原创 go : go gin mysql 创建一个简单的后端web服务

吃别人吃不了的苦,忍别人受不了的气,付出比别人更多的,才会享受的比别人更多 !!!具体代码在: https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/tree/master/go_web_gin1、写在前面本篇使用go-gin框架作为基础,实现简单的基础功能,只有后台代码,提供参考2、目录结构go_web_gin--------------main.go--------------config---------------------.

2022-05-18 18:04:03 554

原创 go : go-redis set操作

昨天是一张废弃了的支票,明天是一笔尚未到期的存款,只有今天是你可以支配的现金!!!具体代码在: https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/blob/master/go_redis1、初始化redis参考上一篇:https://blog.csdn.net/bei_FengBoby/article/details/1247562962、redis-set操作2.1、 SAdd & SCard (增加 & 获取 ) .

2022-05-18 14:11:34 1365

原创 go : go-redis list操作

具体代码在: https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/blob/master/go_redis/go_redis_list.go1、初始化redis参考上一篇:https://blog.csdn.net/bei_FengBoby/article/details/1247562962、list操作2.1、LPushX & LPush (插入数据) //config.RedisDb 是把链接的单独剔除去当做一个方法引用,这.

2022-05-16 18:21:21 851

原创 go : go-redis 基础操作

苍茫大地一剑尽挽破,何处繁华笙歌落具体代码在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/tree/master/go_redis1、下载go-redis库 go get github.com/go-redis/redis2、 初始化redisimport ( "fmt" "github.com/go-redis/redis")// 声明一个全局的redisDb变量var redisDb *redis.Client.

2022-05-13 17:42:12 828

原创 go : 使用 grom 删除数据库数据

你受的苦 吃的亏 担的责 扛的罪 忍的痛 到最后都会变成光 照亮你的路 !!!代码已放在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go可参照文档:https://learnku.com/docs/gorm/v2/create/9732#e9dfd91、 引入gorm import ( "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger")2、链接数据库dsn .

2022-05-13 11:59:00 1744

原创 go : 使用gorm修改数据

能够让你后悔的,从来不是你做过的事,而是你想做却没有去做的事!!!代码已放在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go可参照文档:https://learnku.com/docs/gorm/v2/create/9732#e9dfd91、 引入gorm import ( "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger")2、链接数据库dsn := "ro.

2022-05-13 10:55:41 1460

原创 go : 使用gorm查询记录

生活本沉闷 跑起来才有风具体代码已放在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go/blob/master/go_mysql/db_grom_select.go官方中文文档地址:https://learnku.com/docs/gorm/v2/query/97331、 引入gorm import ( "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger")2、添.

2022-05-12 17:58:18 1735

原创 go : 使用gorm创建数据库记录

不要因为没有掌声而放弃梦想,你需要的是坚持而不是观众!!!代码已放在:https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-go1、 引入gorm import ( "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger")2、添加一个modeltype TUser struct { ID uint `gorm:"primaryKey"` Name s.

2022-05-12 17:53:21 1321 1

原创 springboot: The dependencies of some of the beans in the application context form a cycle:

1、代码报错异常信息:The dependencies of some of the beans in the application context form a cycle: memberCenterController (field private SysUserService MemberCenterController.userService)┌─────┐| sysUserServiceImpl defined in file [SysUserServiceImpl.class

2022-04-29 20:57:18 1863

原创 Mysql Varchar类型 字段排序

Mysql Varchar类型 字段排序1、问题描述:当列表需要字段大小排序的时候,但是数据库字段是Varchar类型的,如果仔细看就会发现并没有按照预期来拍,比如:不是按照:10,9,8,7 这样来的~如果是varchar 类型其实照字符串来排的,我的理解就一排一排来排序,第一排数值比对,然后在第二排。。2、问题解决:在排序的字段后**+0** ORDER BY (字段+0) asc为什么+0后可以,是因为+0后转换成INT类型排序了, 这样就可以按照大小排序了使用MySQL函数C

2022-03-15 18:00:01 5175

原创 JAVA FastJson 返回参数为空过滤

1、问题原因使用FastJson 如果返回结果中有空的字段会过滤2、问题解决@Configurationpublic class ConverterConfig { @Bean @Order(Integer.MIN_VALUE) public HttpMessageConverters fastJsonHttpMessageConverters() { FastJsonHttpMessageConverter fastConverter = new Fast

2022-02-22 16:55:49 975

原创 javax.mail.MessagingException: Could not connect to SMTP host: smtp.163.com, port: 465;

1、报错信息如下:trying to connect to host "smtp.163.com", port 465, isSSL truejavax.mail.MessagingException: Could not connect to SMTP host: smtp.163.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: No appropriate protocol (pr

2021-11-22 11:01:30 5844 4

原创 non-static inner classes like this can only by instantiated using default, no-argument constructor

1、问题原因后端使用 @RequestBody 来接受参数前端出入json后报错2、问题解决问题本质为:内部非静态类无法实例化public class A { class B; class B{ int id ; }}get + set 这里是错误的 ,正确应该是public class A { class B; static class B implements Serializable{ int id ; }}...

2021-10-21 12:06:45 12229 1

原创 javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites

1、问题描述:本地开发测试成功,但是线上环境有问题在使用 spring-boot-starter-mail 发送gmail邮件 报错:xxxx:465xxxxjavax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) at sun.security.ssl.Handshaker.activate(Handshaker.j

2021-10-14 11:17:21 489

原创 Javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?

1、问题描述使用gmail 发送邮件vax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 s8sm1528084ots.38 - gsmtpat com.sun.

2021-10-14 10:49:15 642

原创 Mybatis:caused by: org.apache.ibatis.builder.BuilderException : Error evaluating expression ‘‘

1、报错信息caused by: org.apache.ibatis.builder.BuilderException : Error evaluating expression ''xxxxxxxxxxxxxxxxxx2、我遇到的报错场景传入:type==null @Param("s") 实体类 <if test="s.type !=null"> and type=#{s.type} </if>3、解决方法在外面增加一层判

2021-10-10 19:30:38 2242

原创 ubantu:fatal: unable to access ‘http://github.com/‘: Failed to connect to 127.0.0.1 port 1080:

1、报错信息fatal: unable to access 'http://github.com/xx/xxx.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused2、问题解决将https修改为git就好了eg: git clone https://github.com/xxx/xxxx.gitfatal: unable to access 'http://github.com/xx/xxx.git/':

2021-08-24 13:38:36 332

原创 filecon:cannot find -lhwloc && cannot find -lOpenCL

1、问题原因"/home/admin/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-88c194c15fdb6521.rlib" "/home/admin/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gn

2021-08-17 17:51:36 499

原创 springboot 微信公众号开发

客官可直接移步到代码https://gitee.com/hjx_RuGuoYunZhiDao/strom-huang-wechat

2021-08-13 16:53:17 109

sqlyog_2982.7z

一款好用的MySQL可视化工具,使用方法可以百度一下,方便大家使用,上传了一个文档在上面,拿去不谢哦。

2020-06-05

最好看的简历.zip

简历模板,里面有助理。产品,财务,法务,电子工程。。。。一些常用的模板,希望对你有些帮助!

2019-07-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除