- 博客(7)
- 收藏
- 关注
原创 SPringBoot:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded data
SpringBoot项目多配置文件运行报错:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2021-08-19 09:33:28.421 ERROR 15864 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : ****************
2021-08-19 09:49:11 92
原创 Java根据身份证号获取生日、年龄、性别以及籍贯的工具类
Java根据身份证号获取生日、年龄、性别以及籍贯的工具类参考java8 通过18位身份证号提取用户信息(年龄,生日,姓别)在java中实现通过身份证号码判断籍贯的小工具类具体代码import org.apache.commons.lang3.StringUtils;import java.time.LocalDate;import java.time.format.DateTimeFormatter;import java.time.temporal.ChronoUnit;import
2021-04-08 15:06:31 2787 1
原创 Java集合的一些操作
Java集合的一些操作一、List1、List使用sort()对对象集合排序@Datapublic class ChartVO { private String text;}List<ChartVO> chartVOList = new ArrayList<>();chartVOList.sort(Comparator.comparing(ChartVO::getText)); // 根据text排序(正序)chartVOList.sort(Comparato
2021-01-28 10:35:57 104
原创 Java中各个类型间转换
Java中各个类型间转换一、整型1、String转IntegerInteger num = Integer.parseInt("10101");Integer num = Integer.valueOf("10101");2、Integer转StringInteger num = 10101;String str = num.toString();3、Integer转BigDecimalInteger num = 10101;BigDecimal bigDecimal = new B
2021-01-28 10:17:09 696
原创 对List<Map<String, Object>>里的Map某个键属性排序,升序、降序
对List<Map<String, Object>>里的Map某个键属性排序,升序、降序Collections.sort(resultList, new Comparator<Map<String, Object>>() {@Overridepublic int compare(Map<String, Object> firstMap, Map<String, Object> setondMap) {Integer firstC
2020-12-10 14:46:03 579
原创 Java代码生成器 --- IDEA插件Easy Code
官方说明:|- 基于IntelliJ IDEA开发的代码生成插件,支持自定义任意模板(Java,html,js,xml);|-只要是与数据库相关的代码都可以通过自定义模板来生成;支持数据库类型与java类型映射关系配置;|-支持同时生成生成多张表的代码。每张表有独立的配置信息。完全的个性化定义,规则由你设置;**1、安装File -> Settings -> Plugins,...
2020-02-20 14:09:11 886
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人