会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
durtime
H I ~ ~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
46
下一页
2021年11月12日
.NETframework的EF框架学习报错之datetime 数据类型
摘要: 报错:从 datetime2 数据类型到 datetime 数据类型的转换产生一个超出范围的值 这是因为在sqlserver中你的date字段没有设置默认值,并且你在存入实体的时候没有给date字段赋值 解决办法: 1.在数据库中给你的date字段设置默认值(sqlserverh中):(getdat
阅读全文
posted @ 2021-11-12 08:58 durtime
阅读(223)
评论(0)
推荐(0)
2021年10月31日
每日日报
摘要: 参数化测试 参数化测试是JUnit5很重要的一个新特性,它使得用不同的参数多次运行测试成为了可能,也为我们的单元测试带来许多便利。 利用@ValueSource等注解,指定入参,我们将可以使用不同的参数进行多次单元测试,而不需要每新增一个参数就新增一个单元测试,省去了很多冗余代码。 @ValueSo
阅读全文
posted @ 2021-10-31 15:31 durtime
阅读(82)
评论(0)
推荐(0)
2021年10月30日
junit使用注意
摘要: SpringBoot 2.4 以上版本移除了默认对 Vintage 的依赖。如果需要兼容junit4需要自行引入(不能使用junit4的功能 @Test) JUnit 5’s Vintage Engine Removed from spring-boot-starter-test,如果需要继续兼容j
阅读全文
posted @ 2021-10-30 17:19 durtime
阅读(77)
评论(0)
推荐(0)
2021年10月29日
JUnit5 的变化
摘要: JUnit5 的变化 Spring Boot 2.2.0 版本开始引入 JUnit 5 作为单元测试默认库 作为最新版本的JUnit框架,JUnit5与之前版本的Junit框架有很大的不同。由三个不同子项目的几个不同模块组成。 JUnit 5 = JUnit Platform + JUnit Jup
阅读全文
posted @ 2021-10-29 12:02 durtime
阅读(61)
评论(0)
推荐(0)
2021年10月28日
redis使用配置
摘要: RedisTemplate与Lettuce @Test void testRedis(){ ValueOperations<String, String> operations = redisTemplate.opsForValue(); operations.set("hello","world"
阅读全文
posted @ 2021-10-28 21:12 durtime
阅读(53)
评论(0)
推荐(0)
2021年10月27日
Profile功能
摘要: Profile功能 为了方便多环境适配,springboot简化了profile功能。 application-profile功能 默认配置文件 application.yaml;任何时候都会加载 指定环境配置文件 application-{env}.yaml 激活指定环境 配置文件激活 命令行激活
阅读全文
posted @ 2021-10-27 21:26 durtime
阅读(91)
评论(0)
推荐(0)
2021年10月26日
Redis自动配置
摘要: NoSQL Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bitma
阅读全文
posted @ 2021-10-26 19:02 durtime
阅读(151)
评论(0)
推荐(0)
2021年10月25日
CRUD功能实例之mybatisplus
摘要: CRUD功能实例 @GetMapping("/user/delete/{id}") public String deleteUser(@PathVariable("id") Long id, @RequestParam(value = "pn",defaultValue = "1")Integer
阅读全文
posted @ 2021-10-25 13:31 durtime
阅读(59)
评论(0)
推荐(0)
2021年10月24日
MyBatis-Plus整合
摘要: 什么是MyBatis-Plus MyBatis-Plus(简称 MP)是一个 MyBatis 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 mybatis plus 官网 建议安装 MybatisX 插件 整合MyBatis-Plus <dependency>
阅读全文
posted @ 2021-10-24 14:53 durtime
阅读(63)
评论(0)
推荐(0)
2021年10月23日
springboot整合MyBatis操作
摘要: https://github.com/mybatis starter SpringBoot官方的Starter:spring-boot-starter-* 第三方的: *-spring-boot-starter <dependency> <groupId>org.mybatis.spring.boo
阅读全文
posted @ 2021-10-23 12:53 durtime
阅读(44)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
46
下一页
公告