2.7版本spring.factories弃用
发表于|更新于
|浏览量:
手我是有的,就是不知如何碰你。——顾城
之前我写过一个编写一个spring-boot-starter-fastjson
今天看了一下,新版本的spring2.7,已经弃用了spring.factories
最新版的写法为:

也就是说:

里面配置放包名即可

相关推荐
2020-07-18
Maven常用镜像配置
分享一下Maven阿里云常用镜像仓库settings.xml 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://...
2021-07-14
mybatis-plus动态表名
却是平流无石处,时时闻说有沉沦。——唐•杜荀鹤 配置 123456789101112131415161718@Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); DynamicTableNameInnerInterceptor dynamicTableNameInnerInterceptor = new DynamicTableNameInnerInterceptor(); HashMap<String, TableNameHandler> map = new HashMap<String, TableNameHandler>(2) {{ put("user", (sql, tableName) -> { St...
2021-12-31
jar中没有主清单属性
新闻要适合直接感兴趣的人口味。——马克思 我今天遇到了一个报错… 我仔细一看发现jar包才893KB大小 检查了一下打包配置,发现: 这块少了个repackage配置… 12345678<executions> <execution> <id>repackage</id> <goals> <goal>repackage</goal> </goals> </execution></executions> 加上就可以了 再次打包就好了
2023-10-20
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
相信一切,失望有日;怀疑一切,收获天明。——乔·赫伯特 就像这个issue里描述的一样: https://github.com/springfox/springfox/issues/4061 在springboot3.0引入: 12345 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version></dependency> 引入完毕后发现启动报错。。。于是查询了下 最后一次更新是三年前。。。 https://central.sonatype.com/artifact/io.springfox/springfox-boot-starter/versions 相对的springboot3是去年出的 https://central.sonatype.com/artifa...
2023-12-18
quartz工具类含倒计时
一个人有无成就,决定于他青年时期是不是有志气。——谢觉哉 分享一个自己写的Quartz工具类,可以轻松实现倒计时功能: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778import cn.hutool.core.date.DateUtil;import lombok.SneakyThrows;import lombok.experimental.UtilityClass;import org.dromara.streamquery.stream.core.collection.Lists;import org.quartz.*;import org.quartz.core.jmx.JobDataMapSupport;import org.quartz.impl.StdSchedulerFactory;import org.quart...
2023-12-07
声网rtm加密传输
忍耐能抚慰所有的不幸。——维吉尔 加密方式,文档: https://doc.shengwang.cn/api-ref/rtm2/android/toc-configuration/configuration#RtmEncryptionConfig 1234567891011121314 @Beanpublic RtmClient rtmClient() throws Exception { RtmEncryptionConfig rtmEncryptionConfig = new RtmEncryptionConfig(); rtmEncryptionConfig.setEncryptionMode(RtmConstants.RtmEncryptionMode.AES_256_GCM); rtmEncryptionConfig.setEncryptionKey(agoraProperties.getEncryptionKey()); rtmEncryptionConfig.setEncryptionSalt(agoraPropertie...

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog