logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

CentOS7开启防火墙,开放端口

1、查看防火墙状态systemctl status firewalld2、开启防火墙systemctl start firewalld3、关闭防火墙systemctl stop firewalld4、设置开机自启防火墙systemctl enable firewalld5、设置开机关闭防火墙systemctl disable firewalld6、查看开放的端口firewall-cmd --lis

mybatis源码解析(一)环境准备和测试

1、准备环境项目结构maven依赖<dependencies><dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>3.5.3</version></dependency><

mybatis源码解析(四)调用mapper代理方法执行sql

之前分析了SqlSessionFactory初始化,通过SqlSession获取UserMapper代理对象debug打上断点在List<User> users = mapper.selectAll();看下执行如何执行代理对象的方法public class MybatisDemo {public static void main(String[] args) throws IOExc

#mybatis#sql#java
mybatis源码解析(三)SqlSession获取Mapper代理对象

1、SqlSession session = sqlSessionFactory.openSession(); // 获取SqlSession 对象1)configuration.getDefaultExecutorType()获取默认的执行器类型,一共有三种,默认是SIMPLEpublic enum ExecutorType {SIMPLE, // 简单类型REUSE, // 重用类型BATCH

java实现pdf预览和下载

1、引入依赖<dependency><groupId>com.itextpdf</groupId><artifactId>itextpdf</artifactId><version>5.5.13.2</version></dependency><dependency>

文章图片
#java#开发语言
Spring Boot项目启动失败(使用了lombok),报错:Error:java: java.lang.ExceptionInInitializerError

从gitlab拉下来的项目,导入idea,忘了设置设置project structure的jdk,默认是jdk11,,,,然后lombok插件版本不支持jdk11,所以才会报这个错误,后面直接更改项目的jdk8即可。...

nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping:

原因是使用idea快捷键时,添加的注释为/**/,注释里面我写了另外一条SQL,但是mybatis执行时仍然把里面的#{id}执行了,导致报错,参数异常,需要参数两个,实际传参才只有一个。上图:...

docker registry查看镜像和版本

查看镜像列表http://ip:5000/v2/_catalog查看镜像所有tag版本http://ip:5000/v2/zhjg/镜像名/tags/list

#docker
springkafka集成后给kafka集群发送失败(cluster authorization failed)

1、kafka集群使用的是SASL/SCRAM-SHA-256认证sasl-mechanism: SCRAM-SHA-256security-protocol: SASL_PLAINTEXTsasl-jaas-config: org.apache.kafka.common.security.scram.ScramLoginModule required username="admin" passw

#kafka
到底了