
springboot
文章平均质量分 90
laiyuan999
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于Spring Boot及Spring Cloud版本命名规则,你必须要了解
一、Spring Boot版本号1. 举例:2.3.3.RELEASE其中2: 表示的主版本号,表示是我们的SpringBoot第二代产品,当功能模块有较大更新或者整体架构发生变化时,主版本号会更新。其中3: 表示的是次版本号,增加了一些新的功能但是主体的架构是没有变化的,是兼容的,只是局部的一些变动。。其中3: 表示的一般是bug的修改或者是小的变动。RELEASE:希腊字母版本号。此版本号用户标注当前版本的软件处于哪个开发阶段所以2.3.3.RELEASE合起来就是springboo原创 2021-07-17 21:31:47 · 1001 阅读 · 1 评论 -
Spring boot 整合 tkmybatis
SpringBoot集成通用mapperpom.xml添加依赖 <dependency> <groupId>tk.mybatis</groupId> <artifactId>mapper-spring-boot-starter</artifactId> <version>1.1.7</version> </dependency>特别注意,如果使用了1.2.转载 2021-05-18 21:13:26 · 1710 阅读 · 0 评论 -
解决java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use
1.遇到的问题:在单元测试的时候报:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use问题有可能是有两个:1.你没有写启动类:2.虽然你写了启动类但是你的启动类所在的包和单元测试的包不在同一级根目录下。如上图:一个是在cn.gitv.pro.charg...转载 2020-05-05 17:10:26 · 493 阅读 · 0 评论 -
Failed to bind properties under 'spring.datasource' to javax.sql.DataSource的错误 springboot整合druid
springboot整合druid时,引入了druid的数据源,在配置文件application.yml中配置了相关配置 initialSize: 5 minIdle: 5 maxActive: 20 maxWait: 60000 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeM...转载 2019-05-16 21:52:59 · 2323 阅读 · 0 评论