ballcat
发表于|更新于
|浏览量:
对所有的人以诚相待,同多数人和睦相处,和少数人常来常往,只跟一个人亲密无间——富兰克林
分享一个简单的项目脚手架
gitee:https://gitee.com/ballcat-projects/ballcat
github:https://github.com/ballcat-projects/ballcat

非常好用

相关推荐
2022-03-22
编写一个spring-boot-starter-fastjson
酷烈之祸,多起于玩忽之人;盛满之功,常败于细微之事。——《菜根谭》 这个starter是自己写的,主要就是注入了个FastJsonConfig 写法如下:首先引入gav,完整pom.xml如下: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566<?xml version="1.0" encoding="UTF-8"?><project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://...
2020-12-21
@Scheduled的使用
人之患在好为人师。——《孟子》 今天朋友问我定时任务怎么创建,让我们一起重温复习一下吧~ 首先需要在启动类上加@EnableScheduling注解(组件上也可以加) 然后在需要定时的方法上加上@Scheduled注解 1234567891011121314151617181920212223242526package com.ruben.task;import lombok.extern.slf4j.Slf4j;import org.springframework.scheduling.annotation.Scheduled;import org.springframework.stereotype.Component;/** * @ClassName: LogTask * @Description: 我还没有写描述 * @Date: 2020/12/21 0021 20:11 * * * @author: <achao1441470436@gmail.com> * @version: 1.0 * @since: JDK 1.8 */@Slf4j@Comp...
2021-07-07
thymeleaf调用springBean
没有经过战斗的舍弃,是虚伪的;没有经过苦难的超脱,是轻佻的。——傅雷 昨天写了一篇关于前端精度丢失的博客 今天发现还有个问题,如果我们需要使用thymeleaf在js中使用获取的数据是一个对象 并且里面的属性还是超出16位的Long类型的话,仍然会导致精度丢失 这里我们可以直接写一个JsonManager 12345678910111213141516171819/** * Json转换管理层 * * @author <achao1441470436@gmail.com> * @since 2021/7/7 11:12 */public interface JsonManager { /** * 序列化处理精度丢失 * * @param serializeObj 将要序列化的对象 * @return java.lang.Object * @author <achao1441470436@gmail.com> * @since 2021/7/7 11:16 */ Object ...
2022-09-08
hutool获取excel中的图片
人无礼而何为,财非义而不取——耐施庵 依赖如下: 1234567891011<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.8.6</version></dependency><!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.2.2</version></dependency> 代码如下: 123456789101112131415161718...
2024-04-04
修改mybatis-plus更新策略
把完善的教育留给子女,乃是最佳的遗产。——斯各特 就像: https://github.com/apache/incubator-streampark/pull/3615 首先修改dbConfig.setUpdateStrategy(FieldStrategy.IGNORED); 1234567891011121314151617181920212223/** * mybatis plus setting * * @return MybatisPlusPropertiesCustomizer */@Beanpublic MybatisPlusPropertiesCustomizer mybatisPlusPropertiesCustomizer() { return properties -> { properties.setTypeAliasesPackage("org.apache.streampark.console.*.entity"); properties.setTypeEnumsPackage(&quo...
2022-10-26
PersistJobDataAfterExecution注解
心地善良的人、富于幻想的人比冷酷残忍的人更容易聚合——约翰逊 quartz之前我们也聊过了,今天说下这个注解org.quartz.PersistJobDataAfterExecution 一般和DisallowConcurrentExecution搭配使用 PersistJobDataAfterExecution表示Job执行结束后更新JobDataMap DisallowConcurrentExecution表示不允许并发执行 12345678910111213141516171819202122232425262728293031@Slf4j@DisallowConcurrentExecution@PersistJobDataAfterExecutionpublic class SettlementJob implements Job { /** * <p> * Called by the <code>{@link Scheduler}</code> when a <code&g...

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