会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
星小梦
博客园
首页
新随笔
联系
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
50
下一页
2020年10月1日
SpringDataJdbc使用数据库默认值的解决方法
摘要: SpringDataJdbc提供了 @ReadOnlyProperty 注解,这会造成由Repository保存的实体会忽略这个字段的值进行保存,进而采用数据库的默认值操作;而查询时这个字段也是能够查询出来的。。。。。。 @ReadOnlyProperty:将字段标记为对于映射框架是只读的,因此将不
阅读全文
posted @ 2020-10-01 18:05 星小梦
阅读(565)
评论(0)
推荐(0)
2020年9月27日
Spring @Configuration继承
摘要: Bean定义继承 Bean定义可以包含许多配置信息,包括构造函数参数,属性值和特定于容器的信息,例如初始化方法,静态工厂方法名称等。子bean定义从父定义继承配置数据。子定义可以覆盖某些值或根据需要添加其他值。使用父bean和子bean定义可以节省很多输入。实际上,这是一种模板形式。 如果您以编程方
阅读全文
posted @ 2020-09-27 18:18 星小梦
阅读(1487)
评论(0)
推荐(0)
2020年9月25日
SpringDataJdbc命名查询
摘要: 当使用SpringDataJdbc命名查询时,需要配置几处;官方文档:https://docs.spring.io/spring-data/jdbc/docs/2.0.4.RELEASE/reference/html/#jdbc.query-methods.named-query 第一步:新建个na
阅读全文
posted @ 2020-09-25 20:39 星小梦
阅读(342)
评论(0)
推荐(0)
2020年9月18日
Java Output流写入包装问题
摘要: ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); OutputStreamWriter outputStreamWriter = new OutputStreamWriter(byteArrayOut
阅读全文
posted @ 2020-09-18 22:27 星小梦
阅读(186)
评论(0)
推荐(0)
2020年9月13日
SpringBoot项目单元测试不经过过滤器问题
摘要: SpringBoot使用MockMvc:https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-testing-spring-boot-applica
阅读全文
posted @ 2020-09-13 16:50 星小梦
阅读(1356)
评论(0)
推荐(0)
2020年9月1日
SpringSecurity集成启动报 In the composition of all global method configuration, no annotation support was actually activated 异常
摘要: 异常内容: Caused by: java.lang.IllegalStateException: In the composition of all global method configuration, no annotation support was actually activated
阅读全文
posted @ 2020-09-01 17:19 星小梦
阅读(2095)
评论(1)
推荐(0)
2020年8月24日
JWT jti和kid属性的说明
摘要: jti chaim JWT ID “ jti”(JWT ID)声明为JWT提供了唯一的标识符。 标识符值的分配方式必须确保将相同值偶然分配给不同数据对象的可能性可以忽略不计; 如果应用程序使用多个发行者,则还必须防止不同发行者产生的值之间发生冲突。 “ jti”声明可用于防止重播JWT。 “ jti
阅读全文
posted @ 2020-08-24 19:45 星小梦
阅读(9370)
评论(0)
推荐(0)
2020年8月21日
Maven 排除依赖
摘要: 由于项目使用slf-api->slf4j-log4j12->log4j 的日志依赖形式;需要排除 spring-boot-starter-logging 日志的总包;采用以下形式即可 <dependency> <groupId>org.springframework.boot</groupId> <
阅读全文
posted @ 2020-08-21 22:16 星小梦
阅读(1448)
评论(0)
推荐(0)
2020年8月19日
Jakarta Java Mail属性参数配置
摘要: 前言 Jakarta项目Github网站:https://github.com/eclipse-ee4j Jakarta Mail网址(已无法访问):https://eclipse-ee4j.github.io/mail SMTP协议可匹配的属性(已无法访问):https://eclipse-ee4
阅读全文
posted @ 2020-08-19 20:44 星小梦
阅读(5490)
评论(0)
推荐(2)
2020年8月17日
SpringDataRedis的Keyspaces设置
摘要: 前言 原文:https://docs.spring.io/spring-data/redis/docs/2.3.2.RELEASE/reference/html/#redis.repositories.keyspaces 翻译章节:13.4. Keyspaces 正文 Keyspaces 定义用于为
阅读全文
posted @ 2020-08-17 10:14 星小梦
阅读(490)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
50
下一页
公告