会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ls1519🎈
不奋发,则心日颓靡;不检束,则心日恣肆
首页
新随笔
管理
订阅
09 2020 档案
pring Boot 启动 参数设置
摘要:(1)读取优先顺序 a - 命令行参数 --key=value 引用 $ mvn spring-boot:run -Drun.arguments="--server.port=9090,--server.context-path=/test" $ java -jar target/xxx.jar -
阅读全文
posted @
2020-09-25 00:15
ls1519🎈
阅读(217)
评论(0)
推荐(0)
计算不规则多边形的面积、中心、重心
摘要:/** * 获取不规则多边形重心点 * * @param mPoints * @return */ public static LatLng getCenterOfGravityPoint(List<LatLng> mPoints) { double area = 0.0;//多边形面积 doubl
阅读全文
posted @
2020-09-18 22:25
ls1519🎈
阅读(499)
评论(0)
推荐(0)
JPA Hibernate 使用UUID做为主键的问题
摘要: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🎈
阅读(2470)
评论(0)
推荐(0)
MySQL索引
摘要:一、简介 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🎈
阅读(121)
评论(0)
推荐(0)
在内存中创建一个zip文件
摘要: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🎈
阅读(397)
评论(0)
推荐(0)