摘要: 直接复制使用,绝对好用 <?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema 阅读全文
posted @ 2020-07-21 15:08 HalleyZ 阅读(619) 评论(0) 推荐(0)
摘要: 在gitee上创建新仓库,复制仓库地址 在本地项目文件夹中,打开git bash命令行 git init提交代码 git add .git commit -m 'first commit'添加远程仓库 git remote add origin 远程地址代码推到远程 git push origin 阅读全文
posted @ 2020-07-15 10:17 HalleyZ 阅读(1172) 评论(0) 推荐(0)
摘要: 项目中遇到一个需求,保存医生信息时,执业范围在医师编号为23开头时为必填项,其他医师编号时,执业范围为非必填项。当然这样的需求可以使用简单的if判断来解决,但是最近学习了注解的使用,刚好此需求可以用到,基本思路如下: 1、创建有条件判断字段为空的注解 ConditionalNotEmpty 2、在医 阅读全文
posted @ 2020-06-03 10:35 HalleyZ 阅读(3296) 评论(1) 推荐(0)
摘要: 由于多项目相互调用,传递文件的url来进行数据通讯,那么就需要读取特定后缀名的文件并获取文件名,此时正则表达式表现的非常优雅,如下: String urlPath="http://www.ycts666.com/image/in_008.jpg"; // 指定文件后缀名称(有需求可以自定义,如doc 阅读全文
posted @ 2020-05-27 17:32 HalleyZ 阅读(4763) 评论(0) 推荐(0)
摘要: Mapper接口文件中定义方法:List<DoctorInfoDTO> findDoctorInfoList(@Param("paramMap") Map<String,Object> paramMap);其中paramMap可传递各种类型参数,具体使用请看下方xml文件的查询条件部分 <if te 阅读全文
posted @ 2020-05-06 10:17 HalleyZ 阅读(1374) 评论(0) 推荐(0)
摘要: 项目中前台页面使用 的bootstrap-table插件,客户要求列宽可拖拽,研究了一下午终于搞定。 需要依赖另外两个扩展插件 colResizable-1.6.js bootstrap-table-resizable.js 页面文件引入顺序: <script th:src="@{/scripts/ 阅读全文
posted @ 2020-05-06 10:01 HalleyZ 阅读(1220) 评论(0) 推荐(0)
摘要: 1、定义枚举类 import com.baomidou.mybatisplus.annotation.EnumValue;import com.fasterxml.jackson.annotation.JsonCreator;import com.fasterxml.jackson.annotati 阅读全文
posted @ 2020-04-21 14:21 HalleyZ 阅读(1753) 评论(0) 推荐(0)
摘要: 一,前台相关 1、度一网课(html+css) https://ke.qq.com/course/231570?taid=2955805083273362 图标网站 https://www.iconfont.cn/ 二,java相关 1、java、jvm源码 http://openjdk.java. 阅读全文
posted @ 2020-02-10 14:18 HalleyZ 阅读(144) 评论(0) 推荐(0)
摘要: java8 的函数式编程简直不要太顺畅,可大幅度简化代码,例如下面场景: List保存若干对象,需要过滤出对象的部门属性,并且去重组成list 在java8之前,这样的需求需要循环list,并使用map存储结果,现在只需要一行代码,如下: List<PersonInfo> list=mapper.g 阅读全文
posted @ 2020-01-09 09:26 HalleyZ 阅读(14292) 评论(0) 推荐(0)
摘要: //拼接产品字符串 var productArray = new Array(); $.each($("#fmeatask-subSystem").find("option:selected"), function(index, obj) { productArray.push($(obj).tex 阅读全文
posted @ 2019-11-26 09:45 HalleyZ 阅读(1178) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示