![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
李慢慢i
with heart, with soul, with dream
展开
-
【Java】java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/
问题描述:yml文件的日志相关配置完毕后,重启失败报错如下17:03:14.390 [main] ERROR org.springframework.boot.SpringApplication - Application run failedjava.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' at org.springframework原创 2021-01-10 17:06:58 · 742 阅读 · 1 评论 -
【IDEA】maven plugins报错
难顶┗|`O′|┛ 嗷~~各种查询的方法无解shift+ctrl+alt+s,然背后删除lLibraries后,reimport 失败更换setting中的路径 失败重新配置maven 失败重新导入项目 失败最终的最终!进到了Maven设置中的Local reppository,手动删除文件夹内的内容,重新Reimport后,报错消失了 ...原创 2019-10-24 14:08:38 · 3564 阅读 · 1 评论 -
【Java】MimeMessage邮件优先级setHeader
message.setHeader("Priority","High");Precedence 重要度 [bulk|first-class|list]Prevent-Nondelivery-ReportPriority 重要度 [High|Normal|Low]Precedence 重要度 [bulk|first-class|list]Prev...原创 2019-10-14 21:06:33 · 998 阅读 · 0 评论 -
【Java】JavaMailSender附件名乱码
JavaMailSender实现邮件发送,附件名出现乱码再创建 MimeMessageHelper对象前加上System.getProperties().setProperty("mail.mime.splitlongparameters", "false");刚开始还以为是中英文编码问题 和 附件名过长原因~~参考:https://blog.csdn.net/LHQCho...原创 2019-10-11 11:08:48 · 652 阅读 · 1 评论 -
【MyBatis】collection踩坑
Collection用法参考大佬的博客:https://www.jianshu.com/p/018c0f083501Collection使用过程中踩坑,记录一下~~~需求是将sql查询结果按邮箱分组,故使用了Collection标签But在使用过程坑到我了,单独执行sql语句可以查出9条数据,经过Collection标签映射到List中只有一条记录what ???????????...原创 2019-08-22 20:04:33 · 1990 阅读 · 1 评论 -
【SpringBoot】执行mapper文件,bean属性值变化
参考:https://blog.csdn.net/czd3355/article/details/71302441参考:https://blog.csdn.net/isea533/article/details/21153791查询后发现是mapper文件中selectKey标签的影响<insert id="insert" parameterType="com.xxx.xxx....原创 2019-08-21 16:49:43 · 161 阅读 · 0 评论 -
【SpringBoot】连接项目出现com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications
蓝屏后重启电脑重启项目。开发模式下连接本本地数据库出现异常com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure最后检查mysql服务莫名其妙被关了= =...原创 2019-08-21 09:54:14 · 5739 阅读 · 1 评论 -
【Java】正则表达式windows路径和ip路径
ip路径"^(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|[1-9])\\."+"(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\."+"(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\."+"(1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)$"w...原创 2019-07-13 18:13:36 · 553 阅读 · 0 评论 -
【SpringBoot】js,ajax与springboot之间的两种传参方式
转载原文:https://blog.csdn.net/u012396132/article/details/78870061目前实现的有两种传参方式。请先理解,勿单纯复制粘贴。方式一:前端js:function update(){ var d = {}; d.userId = 30; d.username = "Sunpeng.Guo"; $.aj...原创 2019-05-20 14:28:17 · 2541 阅读 · 0 评论