摘要:import org.jooq.lambda.tuple.Tuple2;import java.time.LocalDate;import java.time.LocalDateTime;import java.time.LocalTime;import java.util.List;import
阅读全文
摘要:1. 阿里云得远程仓库 <mirror> <id>nexus-aliyun</id> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central
阅读全文
摘要:第一部分: 使用idea 打包工程jar 1.准备好一份 开发好的 可执行的 含有main方法的 工程。 例如:我随便写的main方法 public static void main(String[] args) throws IOException { Properties properties
阅读全文
摘要:import java.util.ArrayList;import java.util.Collections;import java.util.List;import java.util.Scanner;public class FakerUtil { public static void mai
阅读全文
摘要:repositories { maven { name "aliyunmaven" url "http://maven.aliyun.com/nexus/content/groups/public/" }}
阅读全文
摘要:首先来看一下String中hashCode方法的实现源码 1 public int hashCode() { 2 int h = hash; 3 if (h == 0 && value.length > 0) { 4 char val[] = value; 5 6 for (int i = 0; i
阅读全文
摘要:java运算符的优先级(1级最高) 优先级运算符 1 . () 点和括号 2 ++ -- 自增自减 3 new 新建对象 4 * / % 乘除模 5 + - 加减 6 >> << >>> 右移 左移 无符号右移 7 > < >= <= 比较运算符 8 == != 9 & 位和 10 ^ 位异或 11
阅读全文
摘要:package cloud.simple.service.util;import java.util.ArrayList;import java.util.List;import cloud.simple.service.dto.TreeNode;public class TreeBuilder {
阅读全文
摘要:package cloud.simple.service.util;import java.io.UnsupportedEncodingException;import java.security.MessageDigest;import java.security.NoSuchAlgorithmE
阅读全文
摘要:熔断器 雪崩效应 在微服务架构中通常会有多个服务层调用,基础服务的故障可能会导致级联故障,进而造成整个系统不可用的情况,这种现象被称为服务雪崩效应。服务雪崩效应是一种因“服务提供者”的不可用导致“服务消费者”的不可用,并将不可用逐渐放大的过程。 如果下图所示:A作为服务提供者,B为A的服务消费者,C
阅读全文
摘要:Eureka 按照官方介绍: Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the
阅读全文
摘要:1、 @EnableHystrixDashboard开启Hystrix Dashboard熔断监控; @EnableTurbine开启Turbine熔断监控; 2、区别:Hystrix Dashboard用于单个监控,Turbine用于集群监控; 3、 Hystrix-dashboard是一款针对H
阅读全文
摘要:--gemo转wktselect st_astext(geom)from geo_collection;--获得区域范围select st_xmin(geom), st_ymin(geom), st_xmax(geom), st_ymax(geom)from geo_collection;--获取区
阅读全文
摘要:1、先说说Sql Server中geometry和geography的区别: geometry:planar 平面坐标系【supported by SQL Server conforms to the Open Geospatial Consortium (OGC) Simple Features
阅读全文
摘要:报错问题: 之前在向MySQL导入经纬度数据的时候,用GeomFromText()方法来将字符串格式的空间点坐标转化为Geometry类型,得到了如下的报错: FUNCTION db.GeomFromText does not exist 解决办法: 统一在GeomFromText()前面加ST_,
阅读全文
摘要:mysql中geometry类型的简单使用编写本文的目的: 让和两天前的我一样的初学者,能够更快的使用geometry类型存储空间点数据 也是为了自己加深印象,更熟练的使用geometry类型建表脚本 CREATE TABLE `z_gis` ( `id` varchar(45) NOT NULL,
阅读全文
摘要:////attachment 作为附件下载////inline 在线打开 Content-Disposition中文乱码 Response.setHeader(”Content-Disposition”, “attachment; filename=” + fileName+”.xls”);如果fi
阅读全文
摘要:jooq: tableName.COMPLETION_TIME.cast(LocalDate.class); mysql sql // and date_format(cms_system_progress_fillin_cycle.start_time, '%Y-%m-%d') = date_fo
阅读全文
摘要:LocalDateTime time = techLogicTablePo.getCreateTime(); DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); Strin
阅读全文
摘要:public List<Entity> findList(RequestModel model) { return this.findList(() -> dsl() .select() .from(meetingInformation) .where(initConditionUsingEntit
阅读全文