上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: /** * 获取不规则多边形重心点 * * @param mPoints * @return */ public static LatLng getCenterOfGravityPoint(List<LatLng> mPoints) { double area = 0.0;//多边形面积 doubl 阅读全文
posted @ 2020-09-18 22:25 ls1519🎈 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 1.将数据库中的主键,设置为varchar(32)。 2.在entity中类头部写入@GenericGenerator(name = "jpa-uuid", strategy = "uuid") 3.在entity中id主键顶部写入@GeneratedValue(generator = "jpa-u 阅读全文
posted @ 2020-09-17 21:05 ls1519🎈 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: 一、简介 MySQL目前主要有以下几种索引类型:1.普通索引2.唯一索引3.主键索引4.组合索引5.全文索引 二、语句 CREATE TABLE table_name[col_name data type] [unique|fulltext][index|key][index_name](col_n 阅读全文
posted @ 2020-09-05 10:15 ls1519🎈 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Use ByteArrayOutputStream with ZipOutputStream to accomplish the task. you can use ZipEntry to specify the files to be included into the zip file. Her 阅读全文
posted @ 2020-09-01 14:15 ls1519🎈 阅读(382) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/13103083/how-do-i-push-to-github-under-a-different-username https://github.community/t/git-bash-still-pushes-repo- 阅读全文
posted @ 2020-08-24 11:39 ls1519🎈 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 如何判断一个点是否在多边形内部? (1)面积和判别法:判断目标点与多边形的每条边组成的三角形面积和是否等于该多边形,相等则在多边形内部。 (2)夹角和判别法:判断目标点与所有边的夹角和是否为360度,为360度则在多边形内部。 (3)引射线法:从目标点出发引一条射线,看这条射线和多边形所有边的交点数 阅读全文
posted @ 2020-08-23 12:00 ls1519🎈 阅读(339) 评论(0) 推荐(0) 编辑
摘要: Spring @Value 注入List和Map EL表达式+JSON写法 .java @Value("#{'${scio.cloud.list}'.split(',')}") private List<String> list; @Value("#{${scio.cloud.maps}}") pr 阅读全文
posted @ 2020-08-21 21:37 ls1519🎈 阅读(1566) 评论(0) 推荐(0) 编辑
摘要: 如果不想每次都写private final Logger logger = LoggerFactory.getLogger(XXX.class); 可以用注解@Slf4j 一、在pom文件加入依赖 <dependency> <groupId>org.projectlombok</groupId> < 阅读全文
posted @ 2020-08-21 16:10 ls1519🎈 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 应为原文:http://www.ilsistemista.net/index.php/linux-a-unix/6-linux-filesystems-benchmarked-ext3-vs-ext4-vs-xfs-vs-btrfs.html?start=1 还有一篇相关介绍:http://www. 阅读全文
posted @ 2020-08-20 18:34 ls1519🎈 阅读(374) 评论(0) 推荐(0) 编辑
摘要: SpringBoot版本选择: 官网地址:https://spring.io/projects/spring-boot SpringBoot官方目前最新最稳定版:2.3.1,如果单独使用SpringBoot的话,建议就可以选择官方指定的最新最稳定版。 但是,如果需要和SpringCloud整合,就得 阅读全文
posted @ 2020-08-17 18:30 ls1519🎈 阅读(470) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页