随笔分类 - 异常
实践中抛异常的解决方案
摘要:add方法返回的是一个BigDecimal对象,所以是不能改变自身值得,只能用一个新对象去接收add方法改变后对象
阅读全文
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = xxx.class) SpringBootTest中要加入启动类class
阅读全文
摘要:缺少依赖 org.springframework.boot spring-boot-starter-jdbc 2.5.4
阅读全文
摘要: 来源:https://blog.csdn.net/winterIsComing7/article/details
阅读全文
摘要:如果项目中报一下红色警告 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
阅读全文
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = {DemoApplication.class})
阅读全文
摘要:Lottery src/main/resources true **/** src/test/resources true **/** org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-c
阅读全文
摘要:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.5.RELEASE</version> <relativePat
阅读全文
摘要:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to dete
阅读全文
摘要:原因:本地仓库没有此版本的jar包,而dependencyManagement只是声明依赖,并不实现引入,需要子项目去引入并下载 解决:先把dependencyManagement删除,刷新,让项目去下载jar到本地,就不会爆红了
阅读全文
摘要:spring源码下载:https://github.com/spring-projects/spring-framework 1、版本兼容问题 spring源码是用gradle创建的,可以通过如图所示,需要下载的源码版本所依赖的gradle版本 此外,SpringBoot 与 Gradle也存在版本
阅读全文