![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
bzhwlp
这个作者很懒,什么都没留下…
展开
-
Java 生成UUID
@Testpublic void getUUIDTest() { String uuid = UUID.randomUUID().toString(); System.out.println(uuid.replaceAll("-", ""));}原创 2021-12-10 11:19:14 · 379 阅读 · 0 评论 -
微信小程序获取位置信息(包括经纬度、地址名)
<template> <view class='item acea-row row-between-wrapper'> <view class='name'>详细地址</view> <view class="address"> <view class='acea-row'> <input class="picker line1" type='text' placeholder='请填写具体地址' pl原创 2021-12-09 17:51:20 · 766 阅读 · 0 评论 -
Java 实现从互联网/url获取文件、转换为base64字符串、获取文件名、获取文件类型
import sun.misc.BASE64Encoder; // 注意别导错包了public void invokeAddCuApplyRepairBill(RepairRequest repairRequest) { RepairOrder repairOrder = new RepairOrder(); List<RepairImage> imageList = new ArrayList<>(); repairOrder.setCustomerId原创 2021-12-08 16:03:09 · 1994 阅读 · 0 评论 -
junit测试:实现@Autowired注入
加两个注解就好:@RunWith(SpringRunner.class)@SpringBootTest(classes = 主启动类.class)@RunWith(SpringRunner.class)@SpringBootTest(classes = JhEbApplication.class) // JhEbApplication 是主启动类public class Test001 { @Autowired private RepairService repairService原创 2021-12-07 14:56:51 · 1515 阅读 · 0 评论 -
oracle:时间字段比较大小
--时间格式相同可以直接进行比较;不同的话,先将日期列转换为指定格式,再进行比较!select col_1,col_2 from table_namewhere to_date(date_1,'yyyy-mm-dd') > to_date(date_1,'yyyy-mm-dd');原创 2021-11-24 11:23:36 · 8316 阅读 · 0 评论 -
typedef
typedef是C语言最重要的关键字之一typedef可以给类型名起别名(可多个)typedef是对类型的封装#include <stdio.h>typedef int integer; //给int起别名int main(void){ integer a; int b; a = 520; b = a; printf("a = %d\n", a); printf("b = %d\n", b); printf("size原创 2020-11-15 13:46:22 · 195 阅读 · 0 评论