阿里云镜像快速构建springboot
发表于|更新于
|浏览量:
智者弃短取长,以致其功。——《后汉书·王符传》
我们创建springboot项目时如果使用原来的https://start.spring.io构建会很慢
这里我们可以使用阿里云的脚手架地址
1 | https://start.aliyun.com |

我们照常输入项目组和名称

下一步后我们发现除了自带的starter我们还可以选阿里巴巴的

非常实用
相关推荐
2020-11-18
使用stream流连接两个list
生命如同寓言,其价值不在于长短,而在于内容—— 塞涅卡 1234567List<Integer> integerList = Arrays.stream(new int[]{1, 2, 3}).boxed().collect(Collectors.toList());List<Integer> collect = Stream.concat(integerList.stream(), integerList.stream()).collect(Collectors.toList());collect.forEach(System.out::print);System.out.println();collect = Stream.of(integerList, integerList).flatMap(List::stream).collect(Collectors.toList());collect.forEach(System.out::print);System.out.println();
2024-08-02
轻量级MVC服务器actframework
一个人追求的目标越高,他的才能就发展得越快,对社会就越有益,我确信这也是一个真理。——玛克西姆·高尔基 链接: GitHub - actframework/actframework: An easy to use Java MVC server stack InstallAdd act-starter-parent into your pom.xml file 12345<parent> <groupId>org.actframework</groupId> <artifactId>act-starter-parent</artifactId> <version>1.9.2.0</version></parent> Or use maven archetype to start a new project: 123456mvn archetype:generate -B \ -DgroupId=com.mycom.helloworld \ -Darti...
2022-01-24
TTL的CRR操作
要有最朴素的梦想,即使明天天寒地冻,路远马亡。——海子 前段时间遇到的TTL(TransmittableThreadLocal)在异步编程中的上下文丢失问题,我是采用了直接更换线程池的方式 但今天抽空看了下官方文档,发现了: 所有TTL值的抓取、回放和恢复方法(即CRR操作) CRR:capture(快照)、replay(回放)、restore(备份) 自己简单写了个测试用例,用于在CompletableFuture和并行流场景下解决ThreadLocal的上下文丢失问题 大伙一定要复制到本地跑一下,需要的GAV是这个: 12345<dependency> <groupId>com.alibaba</groupId> <artifactId>transmittable-thread-local</artifactId> <version>2.12.4</version></dependency> 代码: 12345678910111213141516171819...
2024-03-04
r2dbc配置枚举转换器
你如果愿意做哲学家,尽管做好了,但是你在你的全部哲学思维中,仍然要做一个人。——休谟 首先配置Converter 12345678910111213141516171819202122232425import jakarta.annotation.Nullable;import org.springframework.core.convert.converter.Converter;import org.springframework.data.convert.WritingConverter;import org.springframework.stereotype.Component;/** * EnumToIntConverter * * @author achao@apache.org */@Component@WritingConverterpublic class AgoraNotifyTypeEnumToIntConverter implements Converter<AgoraNotifyTypeEnum, Integer> { ...
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...
2021-02-16
springboot中自定义配置
我们不快乐的原因之一,是不知道如何安静地待在房间里,心平气和地与自己相处。——亦舒 例如我们需要进行一些自定义配置写到配置文件中 可以使用@ConfigurationProperties注解 1234567891011121314151617181920212223242526272829package com.ruben.pojo;import com.ruben.enumeration.GenderEnum;import lombok.Data;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.stereotype.Component;import java.util.List;import java.util.Map;/** * @ClassName: RubenProperties * @Description: ruben配置类 * @Date: 2021/2/16 0016 11:40 * * * @author...

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