Springboot自定义starter出现的问题

自定义springboot starter 的采坑经历
springboot java 2019年03月06日 89次浏览

mysql 本机ip连接不上问题处理

mysql 本机ip连接不上问题处理 1. create user root@'{ip}' identified by 'sf123456'; 其中%为你的IP地址 2. grant all privileges on *.* to root@'{ip}
2023年05月30日 25次浏览

ParallelStream中如何使用ForkJoinPool的跟踪

当我们使用List<String> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9).parallelStream().map(l -> l + "").collect(Collectors.toList());
JDK java 2021年02月25日 29次浏览

org.hibernate.AssertionFailure: possible non-threadsafe access to the session

also plase check thisJDBC Connection to reset not identical to originally prepared Connection - please make sure to use connection release mode ON_CLO
java 2020年12月01日 23次浏览

vsftpd 虚拟用户的演示

vsftpd 虚拟用户的演示创建一个与虚拟用户对应的本地用户,并且设置为不可登录useradd vuser -d /data/ftp -s /sbin/nologin创建虚拟用户的用户名密码,如创建vuser.temp文件,内容如下所示# /etc/vsftpd/vuser.tempu1123456
linux ftp 2020年11月11日 18次浏览

Springboot 如何让返回的json数据节点为空的时候不显示

首先默认情况下,spring为初始化了Converts,参考类WebMvcConfigurationSupportprotected final void addDefaultHttpMessageConverters(List<HttpMessageConverter<?>>
2020年11月07日 22次浏览

从@DateTimeFormat不生效出发认识DataBinder

环境SpringBoot-2.2.5情景:前端发送请求,通过将请求参数直接映射成实体的方式,参数createTime对应的实体类属性类型为java.time.LocalDateTime,createTime传过来的值为'2020-10-01'的形式。字段配置如下(把iso去掉也是一样会报错):
springboot java 2020年11月01日 37次浏览

vitrualbox and vagrant to install centos

http://www.vagrantbox.es/vagrant box add centos7.2-1 C:\Users\Administrator\Downloads\vagrant-centos-7.2.boxvagrant initedit Vagrantfilevagrant up关于更多
2020年10月22日 22次浏览

自定义类型互转 部分代码

public final Object convert(Object fromEntity, Object toEntity) throws Exception {try { if (toEntity == null) { if (getClass().getGenericSuperclas
2020年10月20日 48次浏览

Spring boot中SmartInitializingSingleton中如何开启ManagementContext的配置

最近有使用springboot 内嵌容器undertow,并开启了access-log的动能,发现pattern stc=%s snt=%B dur=%D中的%D没有生效,发现是在SmartInitializingSingleton 阶段进行设置的。SmartInitializingSinglet
springboot 2020年09月29日 22次浏览