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

也就是说:

里面配置放包名即可

相关推荐
2023-11-14
webclient模板变量
过于重视行为规则、拘泥形式,往往在事业上错失良机。——培根 今天分享在使用webclient进行开发时的的一个小技巧 例如这个方法: 1org.springframework.web.reactive.function.client.DefaultWebClient.DefaultRequestBodyUriSpec#uri(java.lang.String, java.lang.Object...) 此处如果直接使用: 1webClient.get().uri("/dev/v1/kicking-rule?appid={}", appId) 或者 1webClient.get().uri("/dev/v1/kicking-rule?appid=%s", appId) 哪怕 1webClient.get().uri("/dev/v1/kicking-rule?appid=%s", appId) 都是不行的。。。 正确的方式应该是: 1webClient.get().uri("/de...
2022-10-03
jasper-reports
自然里并不包含有永恒不变的形态——霍尔巴赫 JasperReports 库是世界上最流行的开源报告引擎。它完全是用 Java 编写的,能够使用来自任何类型数据源的数据,并生成像素完美的文档,可以查看、打印或导出各种文档格式,包括 HTML、 PDF、 Excel、 OpenOffice、 MS Word 和其他格式。 git地址:https://github.com/TIBCOSoftware/jasperreports 官网地址:https://community.jaspersoft.com/project/jasperreports-library
2020-12-28
中文转拼音
时间最不偏私,给任何人都是二十四小时;时间也最偏私,给任何人都不是二十四小时。──赫胥黎 引入依赖 12345<dependency> <groupId>com.belerweb</groupId> <artifactId>pinyin4j</artifactId> <version>2.5.0</version></dependency> 编写代码 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172package com.ruben.utils;import net.sourceforge.pinyin4j.PinyinHelper;import net.sourceforge.pinyin4j.format.HanyuPinyinCaseT...
2023-12-13
boot项目添加运行参数的maven插件
不存在十全十美的文章,如同不存在彻头彻尾的绝望。——村上春树 之前说了 单元测试添加运行参数的maven插件 难道对于非单元测试就只能手动写命令了吗?当然不是!我们只需要使用: 123456789101112131415161718192021222324252627282930313233<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> <config...
2020-08-08
迁移spring项目到springboot
嗨呀!今天是周六没上班,来把我们的spring+springmvc项目迁移到springboot吧! 首先创建springboot项目 然后一直下一步,复制我的pom 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/...
2024-01-09
webclient负载均衡踩坑
一个人总免不了称为别人的对立面。——乔治·克列孟俊 今天踩坑 123456789101112131415161718192021222324252627282930313233import cn.dev33.satoken.same.SaSameUtil;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import org.springframework.web.reactive.function.client.WebClient;import reactor.core.publisher.Mono;/** * UserClient * * @author VampireAchao<achao @ hutool.cn> */@Servicepublic class UserClient { private final WebClient webClient; @Autowire...
