摘要: 接口定义原则 对外接口 接口名称:反应出业务含义,尽量简短整洁; 接口参数:不可以使用领域对象,使用基本类型, 如果参数过多有通用性,可以整理到VO类中; 接口返回:不可以返回领域对象,返回简单类型,如果返回数据过多,可以整理到DTO中. 对内接口 如果在不同的服务之间,有共同的处理逻辑,可以提取到 阅读全文
posted @ 2022-11-28 10:55 远启 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 终端管理员运行: 依次执行命令 (请逐条完整输入,即使没有显示错误。每条命令都会有一个进度,请等待进度完成100%。) Dism /Online /Cleanup-Image /ScanHealth 回车 Dism /Online /Cleanup-Image /CheckHealth 回车 DIS 阅读全文
posted @ 2022-08-04 19:06 远启 阅读(458) 评论(0) 推荐(0) 编辑
摘要: select a.* from table a where 10 > (select count(*) from table b where b.dif_distance = a.dif_distance and b.id > a.id ) order by a.id-- 按照dif_distanc 阅读全文
posted @ 2022-06-13 10:54 远启 阅读(2472) 评论(0) 推荐(0) 编辑
摘要: static int answer = 0; static int N = 4;//皇后数 static int[] queen = new int[N + 1]; private static void putQueen(int j) {// 第几个皇后 for (int i = 1; i <= 阅读全文
posted @ 2022-05-21 19:06 远启 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1.判断数据是否存在 -- 通常写法,查出条件下的数据数量count SELECT count(*) FROM table WHERE a = 1 AND b = 2 2.提升效率写法 -- 使用Limit1 , 避免资源过度扫描 SELECT 1 FROM table WHERE a = 1 AN 阅读全文
posted @ 2021-11-22 11:07 远启 阅读(88) 评论(0) 推荐(0) 编辑
摘要: select CONCAT(ROUND(a/b*100,2),"%") from testnum; 阅读全文
posted @ 2021-09-23 18:50 远启 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 添加图片水印,换行 // 用来调整水印的间距private static final int space = 5; private static int getCharLen(char c, Graphics2D g) { return g.getFontMetrics(g.getFont()).c 阅读全文
posted @ 2021-09-13 16:58 远启 阅读(76) 评论(0) 推荐(0) 编辑
摘要: maven IDEA中配置 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true Settings文件配置 <?xml version="1.0" encoding="UTF-8"?> <!-- Licen 阅读全文
posted @ 2021-08-27 14:24 远启 阅读(183) 评论(0) 推荐(0) 编辑
摘要: @NotNull private MultipartFile getMultipartFile() throws IOException { File file = new File("C:\\Users\\wfy\\Downloads\\test.apk"); FileItem fileItem 阅读全文
posted @ 2021-08-25 11:00 远启 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: <collection property="releaseNotificationDtos" javaType="ArrayList" column="id" ofType="com.zyt.dto.appversion.AppReleaseNotificationDto" select="find 阅读全文
posted @ 2021-08-24 16:24 远启 阅读(3156) 评论(0) 推荐(0) 编辑