
spring boot
ignoHH
这个作者很懒,什么都没留下…
展开
-
Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘
Failed to convert value of type ‘java.lang.String’ to required type ‘java.util.Date’springboot在controller层的GET接口中接受java.util.Date类型参数,发生Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'错误需要在controller接口中格式化接收的Date,如图修改原创 2020-12-15 14:21:34 · 687 阅读 · 0 评论 -
shiro登陆时密码加盐哈希实现和简单原理
shiro登陆时密码加盐哈希实现转载请注明出处实现废话不多说,开搞。此篇采用SHA-256哈希算法,采用其他算法只需要更改算法名字段。1.在shiro配置中添加对于HashedCredentialsMatcher的配置 @Bean public HashedCredentialsMatcher hashedCredentialsMatcher(){ HashedCredentialsMatcher hashedCredentialsMatcher = new Hashed原创 2020-11-19 17:44:23 · 939 阅读 · 2 评论 -
mybatisx和idea无法识别特定名字的xml文件
mybatisx和idea无法识别特定名字的xml文件今天创建mybatis时创建了xml文件,实际运行没有问题,但是检测一直出问题,强迫症很难受。如图:处理办法:在setting中按图找到对应的选项,如SlideMapper.xml,点击右侧的删除,然后点应用。ok!解决啦!...原创 2020-10-20 18:47:27 · 1142 阅读 · 3 评论 -
ReplayingDecoder<S>和ByteToMessageDecoder
ReplayingDecoder<>public abstract class ReplayingDecoderextends ByteToMessageDecoder能够在阻塞I/O中实现非阻塞的解码ReplayingDecoder和ByteToMessageDecoder的区别ReplayingDecoder中的decode()和decodeLast()方法使用时可以忽略数据的接收,即可以看做所有的数据都已经接收完毕,你不用去考虑收到的数据是否是可用的.下面分别使用ByteToM原创 2020-09-08 16:35:18 · 449 阅读 · 0 评论 -
读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par
这里写自定义目录标题读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par问题原因解决方法读取pom.xml出现Could not transfer artifact org.springframework.boot:spring-boot-starter-par本人因为重装系统,重新安装了idea,从github下载项目时pom大片爆红无法启动,尝试本地常见新项目同样爆红。maven原创 2020-09-05 17:54:12 · 21266 阅读 · 1 评论 -
org.apache.maven.plugin.surefire.SurefirePlugin NOT Found
org.apache.maven.plugin.surefire.SurefirePlugin NOT Found从gitlab拉下来的项目,maven构建时一直显示org.apache.maven.plugin.surefire.SurefirePlugin not found根据网上的方法,检查了本地maven的repository中的surefire插件目录,jar包存在;删除目录让maven重新reload依然报错。解决方法:添加版本显式声明<plugin>原创 2020-08-25 09:33:22 · 11657 阅读 · 5 评论