随笔分类 -  异常

实践中抛异常的解决方案
摘要:{"alipay_trade_create_response":{"msg":"Business Failed","code":"40004","sub_msg":"参数无效:买家不能为空","sub_code":"ACQ.INVALID_PARAMETER"},"sign":"Ma0IcDxUcS 阅读全文
posted @ 2025-05-12 17:54 必行之码 阅读(193) 评论(0) 推荐(0)
摘要:yml文件中配置 mybatis: mapper-locations: classpath:/mybatis/mapper/*.xml config-location: classpath:/mybatis/config/mybatis-config.xml 阅读全文
posted @ 2025-05-12 09:39 必行之码 阅读(6) 评论(0) 推荐(0)
摘要:add方法返回的是一个BigDecimal对象,所以是不能改变自身值得,只能用一个新对象去接收add方法改变后对象 阅读全文
posted @ 2023-05-31 14:49 必行之码
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = xxx.class) SpringBootTest中要加入启动类class 阅读全文
posted @ 2023-05-31 10:03 必行之码 阅读(14) 评论(0) 推荐(0)
摘要:缺少依赖 org.springframework.boot spring-boot-starter-jdbc 2.5.4 阅读全文
posted @ 2023-05-25 16:42 必行之码
摘要:![](https://img2023.cnblogs.com/blog/2500414/202305/2500414-20230525134406504-1801994448.png) 来源:https://blog.csdn.net/winterIsComing7/article/details 阅读全文
posted @ 2023-05-25 13:44 必行之码
摘要:如果项目中报一下红色警告 Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ req 阅读全文
posted @ 2023-05-16 15:48 必行之码 阅读(26) 评论(0) 推荐(0)
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = {DemoApplication.class}) 阅读全文
posted @ 2023-05-16 15:25 必行之码 阅读(17) 评论(0) 推荐(0)
摘要:Lottery src/main/resources true **/** src/test/resources true **/** org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-c 阅读全文
posted @ 2023-05-14 18:15 必行之码
摘要:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.5.RELEASE</version> <relativePat 阅读全文
posted @ 2023-05-09 15:41 必行之码 阅读(39) 评论(0) 推荐(0)
摘要:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to dete 阅读全文
posted @ 2023-04-16 20:35 必行之码 阅读(296) 评论(0) 推荐(0)
摘要:原因:本地仓库没有此版本的jar包,而dependencyManagement只是声明依赖,并不实现引入,需要子项目去引入并下载 解决:先把dependencyManagement删除,刷新,让项目去下载jar到本地,就不会爆红了 阅读全文
posted @ 2023-04-16 15:43 必行之码 阅读(134) 评论(0) 推荐(0)
摘要:spring源码下载:https://github.com/spring-projects/spring-framework 1、版本兼容问题 spring源码是用gradle创建的,可以通过如图所示,需要下载的源码版本所依赖的gradle版本 此外,SpringBoot 与 Gradle也存在版本 阅读全文
posted @ 2023-02-27 14:55 必行之码 阅读(63) 评论(0) 推荐(0)