- 博客(13)
- 收藏
- 关注
原创 版本:Idea2023 Jdk17 SpringBoot3.1.2 创建项目会遇到的bug
挺纳闷的不知道为啥 自从换了jdk17后 引入jar都会报奇奇怪怪的异常,见的最多的就是下面这个错。大概意思就是没有创建Bean,然后导致的这个问题,那么接下来该怎么解决呢?我先排一下错吧,等有结果了我发评论区里边。
2023-09-25 19:52:38
1273
原创 jakarta.mail.MessagingException: Got bad greeting from SMTP host: smtp.163.com, port: 465, response:
springboot发送邮件就报错。
2023-08-24 14:44:37
2069
原创 springboot邮箱发送问题
Field mailSender in com.example.service.impl.AuthorizeServiceImpl required a bean of type 'org.springframework.mail.MailSender' that could not be found.
2023-08-20 11:13:25
1167
原创 springboot项目启动就停止
加上这个jar包基本上就不会出现springboot运行之后就能正常运行啦,自动停止的问题就解决了。其实问题出就出在Maven没有导入那个web的jar包。
2023-08-01 16:58:32
1866
原创 ConnectException: Connection timed out: connect(连接超时)
使用http去调用别人提供的接口时报异常ConnectException: Connection timed out: connect(连接超时)/SSLHandshakeException: Remote host terminated the handshake(远程主机终止握手)
2023-06-16 10:33:11
8713
原创 Mapper.xml文件中日期比较,从xxx开始至xxx结束日期
然后我们改完后把 “= 等于号”改为“大于等于号”= ]]>然后uploadTimeEnd结束字段就是改为像这种搜索框,前端传给我们的参数一般就两个一个是开始日期一个是结束日期。然后我们拿到这两个字段后,我们mapper里面要做的判断就来了。
2023-05-15 15:51:52
3014
1
原创 Expected one result (or null) to be returned by selectOne(), but found: 3
还有一种解决方案就是你在mapper.xml文件查询的最后加上limit 1。为了防止这种错,我们直接在mapper接口上改成用list包装就好了。这个错误的意思就是只要一条数据但是查出了一条以上的数据。就直接设置只让查出一条数据就好了。
2023-05-11 12:04:58
458
原创 springboot集成seata报错Error creating bean with name ‘globalTransactionScanner‘
SeataAutoConfiguration.classl: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: applicationId: null, txServiceGroup: null-seata-service-group报错
2023-03-09 11:01:03
4944
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人