- 博客(59)
- 资源 (25)
- 问答 (1)
- 收藏
- 关注
原创 Mybatis-Plus使用时,entity类必须添加无参构造方法
如果使用lombok,还可以这么快速添加:@NoArgsConstructor,全参数的也加一个:@AllArgsConstructor。Mybatis-Plus使用时,entity类必须添加无参构造方法。解决就是给Entity实体类添加一个无参数构造方法。
2023-08-17 22:09:13 430
原创 gitpython实现window双击exe程序,自动提交git远程仓库
gitpython实现window双击exe程序,自动提交git远程仓库,需要编辑配置文件,能够自动识别.gitignore
2023-05-01 12:27:25 168 1
原创 异常:nested exception is java.lang.NoSuchFieldError: DEFAULT_SHUTDOWN_QUIET_PERIOD
Spring Cloud Gateway或者SpringBoot启动异常
2022-08-23 10:56:45 1524
原创 SpringBoot Thymeleaf 入门
SpringBoot Thymeleaf 入门常见异常: An error happened during template parsing (template: "class path resource
2022-06-05 23:03:44 203
原创 python 校验身份证号码 并输出对应省市县生日 demo
1.需求2.代码实现 # _*_coding:utf-8_*_import redef validateIdCard(idCard): weight = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] check_code = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'] sum = 0 for i in range(len(idC
2022-05-11 23:16:55 6247
原创 静态工具类使用单例对象线程安全问题注意1
1.记录问题1.1工具类代码public static SimpleDateFormat sdfTest = new SimpleDateFormat("yyyy年MM月dd日"); public static Date selectDate(String stageDuring) { try { System.out.println(Thread.currentThread().getId()+"==睡眠前=="+stageDuring); Thread.sleep(10*10
2021-10-23 17:51:10 4251
原创 spring-cloud-kubernetes视频教程
一、视频地址https://edu.csdn.net/course/detail/35861关于收费问题:本人也是想了很久,有一段时间也想完全免费,但是后来综合考虑还是收费了。不过针对想学习但是经济有压力的小伙伴们(只针对在校大学生),可以联系我报销,联系邮箱:[email protected]二、基本概念简介2.1什么是K8s官网地址:https://kubernetes.io/zh/其实k8s是kubernetes的简称,因为“k”和“s”中间有八个字母,所以简称“k8s
2021-09-12 16:50:31 505
原创 Jenkinsfile自定义全局变量
在steps里面定义一个script标签,无需定义,直接使用即可,下面是pipeline示例:pipeline { agent { node { label 'maven' } } parameters { string(name:'TAG_NAME',defaultValue: 'v1.0',description:'') choice(name: 'APP_NAME', choices: ['gateway', 'sso
2021-08-11 11:25:49 2405
原创 搭建kubenates-err1
异常内容:W0801 09:20:29.965243 2958 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.[preflight] Running pre-flight checks [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as
2021-08-01 17:31:39 381
原创 rabbitmq使用docker从安装到Java第一个rabbit_demo
1.docker安装和运行1.1下载镜像docker pull rabbitmq:3.7.7-management1.2运行起来docker run -d --name myrabbitmq -p 5672:5672 -p 15672:15672 -v `pwd`/data:/var/lib/rabbitmq --hostname myRabbit \ -e RABBITMQ_DEFAULT_VHOST=my_vhost -e RABBITMQ_DEFAULT_USER=admin -e RAB
2021-07-06 21:38:33 211 2
原创 手动双面打印机-打印规则
手动双面打印机,需要记住规则,反了就不行,需要严格遵守:1.文档总数:a、奇数页===》 必须先打印奇数,再打印偶数,第一页的第二面空白;b、偶数页===》 必须先打印偶数,再打印奇数,没有空白页;2.针对一个文档多份打印:1.a情况===》 每份去掉第一页,或者第一页最后打印;打印完奇数,再多份偶数同时打印;1.b情况===》 可以直接连打,只需要记住先偶再奇就行;...
2021-07-03 14:02:26 4848
原创 javax.jms.JMSException: Failed to create session factory
异常信息:14:49:58.273 [RMI TCP Connection(3)-192.168.134.1] WARN o.s.b.actuate.jms.JmsHealthIndicator - JMS health check failedjavax.jms.JMSException: Failed to create session factory at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.crea
2020-12-25 14:53:01 4086
原创 联想 Lenovo 小新Pro-13ARE 2020 笔记本电脑 评测
基本信息:电脑型号 联想 Lenovo 小新Pro-13ARE 2020 笔记本电脑操作系统 Windows 10 64位 ( DirectX 12 )处理器 AMD Ryzen 7 4800U with Radeon Graphics 八核主板 联想 LNVNB161216 ( AMD PCI 标准主机 CPU 桥 )内存 16 GB ( DDR4 3200MHz )主硬盘 UMIS RPITJ512VME2OWD ( 512 GB / 固态硬盘 )主显卡 AMD Radeon Graph
2020-12-06 16:40:43 16820 1
原创 Unsatisfied dependency expressed through field ‘authorizationServerTokenServices‘
使用SpringSecurityOauth2启动异常:ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘openId
2020-12-03 14:57:22 1468
转载 Java Lambda表达式笔记list常用操作
一、基础知识1.是什么?Lambda 表达式,也可称为闭包,它是推动 Java 8 发布的最重要新特性。Lambda 允许把函数作为一个方法的参数(函数作为参数传递进方法中)。使用 Lambda 表达式可以使代码变的更加简洁紧凑。知名大神博客,可以直接跳到大神博客学习。2. Lambda 表达式实例// 1. 不需要参数,返回值为 5() -> 5// 2. 接收一个参数(数字类型),返回其2倍的值x -> 2 * x// 3. 接受2个参数(数字),并返回他们的差值(
2020-11-30 21:50:38 811
原创 openfeign 找不到 @FeignClient 注册的组件
标题@EnableFeignClients注解注意该注解使用时请注意,如果在子包中使用,一定将Application类拿到外面,否则报找不到@FeignClient注册组件报错openfeign默认不支持Get请求,可以使用以下配置:
2020-11-15 00:46:53 619
原创 ConflictingBeanDefinitionException: Annotation-specified bean name ‘imageLoader‘ for bean class [com
异常信息:org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘imageLoader’ for bean class [com.sun.javafx.tk.ImageLoader] conflicts with existing, non-compatible bean definition of same name and class [com
2020-11-14 22:55:57 646
原创 Consider defining a bean of type ‘java.util.List‘ in your configuration.
异常信息:[zxl-sso-server:192.168.1.157:3333:dev] 2020-11-14 18:02:27.897 WARN 6472 [restartedMain][558][refresh] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext Exception encountered during context initialization
2020-11-14 18:09:23 7208
原创 新版MySQL ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
新版本MySQL8.0最近的版本设置密码,要求会更加严格很多博客提到set global validate_password.length=1;set global validate_password.policy=0;但是现在仍旧不好使因为还有几项没有修改,可以先使用命名查看一下://如果没有先配好root的密码,使用初始密码是无法查看对应的参数的。所以还是要先设置一个麻烦一点的密码,重启数据库,命令在后面:SHOW VARIABLES LIKE ‘validate_password%’;
2020-11-11 23:41:32 85
原创 nested exception is java.lang.IllegalStateException: Can‘t configure antMatchers after anyRequest
错误信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘springSecurityFilterChain’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean
2020-11-04 17:40:17 2527
原创 Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi
错误信息:org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.SsoServerApplication]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframe
2020-11-04 17:30:46 11845
原创 No qualifying bean of type ‘com.netflix.client.config.IClientConfig‘ available
2020-11-04 17:10:12.616 WARN 6424 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error crea
2020-11-04 17:28:02 1620 1
原创 glusterd.service: control process exited, code=exited status=203
安装GlusterFs启动报错glusterd.service: control process exited, code=exited status=203报错原因:没有修改:vim /usr/lib/systemd/system/glusterd.service脚本修改如下,[Unit]Description=GlusterFS, a clustered file-system serverDocumentation=man:glusterd(8)Requires=rpcbind.ser
2020-07-16 22:46:20 1510
原创 ActiveMq修改代码链接账号密码&8161/admin管理密码
1.修改代码中链接用户名密码:(修改conf/ activemq.xml)```java<plugins><simpleAuthenticationPlugin> <users> <authenticationUser username="z" password="123" groups="users,admins"/> </users></simpleAuthenticationPlugin>
2020-05-11 15:44:32 1853
原创 鼠标右击html元素,能够编辑该元素
demo简单,直接代码:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"><...
2020-04-14 18:32:49 202
原创 CentOS7 MySQL8.0 启动失败 Data Dictionary initialization failed
在CentOS7下面MySQL启动失败。1.查看错误原因1.1看错误日志在哪里cat /etc/my.cnf确定错误日志文件在/var/log/mysqld.log,查看错误1.2查看错误cat /var/log/mysqld.log2020-04-12T14:43:42.933326Z 0 [ERROR] [MY-010119] [Server] Aborting2020-04...
2020-04-12 23:02:09 32069 4
原创 SpringMvc+Spring+ActiveMQ发送接收Mqtt消息Maven-Demo
一、入门知识1什么是ActivemqMQ是消息中间件,是一种在分布式系统中应用程序借以传递消息的媒介,常用的有ActiveMQ,RabbitMQ,kafka。ActiveMQ是Apache下的开源项目,完全支持JMS1.1和J2EE1.4规范的JMS Provider实现。ActiveMQ支持MQTT协议,并将在JMS / NMS和MQTT客户端之间自动映射。MQTT是机器对机器(M2M)的发...
2020-04-08 14:24:19 1351
原创 SharePoint2013 工作流状态 已取消 一看报错了(权限问题)
一、错误信息RequestorId: 4abc7b52-0b11-4f2e-2f6d-a54c94f13381。详细信息: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["4abc7b52-0b11-4f...
2020-03-08 11:26:11 392
原创 拦截器获取自定义注解信息类似AOP切面编程
既然有切面编程,已经有Before,After-returning,After,After-throwing,Around这五种通知,已经非常完善了。但是为什么要自定义一个注解,配合拦截器使用呢?有一个问题,就只在切面编程中,我们是无法获取当前线程的HttpServletRequest、HttpServletResponse的,所以这个时候我们可以使用Handler结合@Interface的方式解...
2019-09-15 14:55:50 873
原创 SpringBoot自定义注解(附百度云demo源码)
0.pom.xml<dependencyManagement> <dependencies> <dependency> <groupId>io.spring.platform</groupId> <artifactId>platform-bom</artifactId> <...
2019-09-14 22:33:28 212
原创 Springboot自定义注解异常javax.validation.ConstraintDefinitionException
1.异常信息javax.validation.ConstraintDefinitionException: HV000074: com.xdl.annotation.config.MobileAnnotation contains Constraint annotation, but does not contain a groups parameter. at org.hibernate.v...
2019-09-14 22:23:30 5440
安卓adb无线调试(自始至终都不需要手机和电脑usb连接)
2024-04-05
gitpython实现window双击exe程序,自动提交git远程仓库,需要编辑配置文件
2023-04-30
seata1.3.0完整demo
2022-08-06
Q&Q HG08-204说明书中文版
2022-07-12
解决笔记本风扇声音大问题
2022-05-14
省市地区及6位编码(附身份证号校验程序)
2022-05-12
基于djando的ocr docker镜像 生产级别
2022-05-09
Axure RP Extension for Chrome 0.6.3
2022-04-23
OSError: [WinError 126] geos_c.dll
2022-02-11
activemqmqttdemo1.zip
2020-04-26
JavaScript操作Excel_Demo.zip
2020-04-21
org.dadacoalition.yedit_1.0.20.201509041456-RELEASE.zip
2020-04-20
Layui省市区三级联动城市选择实现Demo.txt
2020-01-04
父组件向子组件传值(双向数据传输).html
2019-10-25
父组件向子组件传值.html
2019-10-25
子组件向父组件传值.html
2019-10-25
SpringBoot-Maven-Thymeleaf完整博客系统(包含前后台数据库,拿过去就能直接用).txt
2019-08-20
JS实现loading效果(不需要引入任何文件,一个html,几行代码。)
2019-06-18
SpringBoot邮件发送-maven项目-对应源码
2019-03-29
Java-flink的sum方法输出
2022-06-05
TA创建的收藏夹 TA关注的收藏夹
TA关注的人