- 博客(12)
- 收藏
- 关注
原创 mybatis的xml中一个方法多条sql一起执行
有些时候需要批<foreach collection="list" item="item" separator=";"> UPDATE employee SET commission_workflow = #{workflow} WHERE commission_period_id = #{item.commissionPeriodId} AND employee_id = #{item.employeeId}</foreach>需要在jdbc:my
2020-06-05 11:38:37 2469
原创 mybatis查询mysql时间格式化 DATE_FORMAT
在数据库中对应的是DateTime,查询参数为String类型,缺少时分秒的情况下使用select * from order where isDelete = 0<if test="rev.orderDate != null and rev.orderDate != ''"> <![CDATA[ AND DATE_FORMAT(order_date...
2020-04-10 19:17:36 6047 1
原创 git本地上传服务器
git 本地上传服务器因为要切换git服务器,所以自己搭建了一个gItLab,在gitLab上初始化一个服务器之后,假设路径为http://192.168.0.66/zhangyushuai/testgit.git然后在项目根目录下右键git bash here1.初始化命令git init 2.连接远程git仓库git remote add origin git @ http:...
2020-01-02 18:47:53 185
原创 spring boot+mybatis-plus+p6spy执行sql打印
mybatis-plus+p6spy执行sql打印spring boot 版本<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0...
2019-12-12 11:08:05 3425 1
原创 JAVA1.8-lambda表达式日常应用
描述日常编码过程当中,遇到的lambda应用,整理出一些笔记。List 转map 根据list中类型进行分组,然后返回map(根据roominfo中的workId 进行分组,key=workId)Map<String,List<RoomInfo>> map = list.stream() .collect(Collectors.groupingBy(Room...
2019-12-11 14:29:15 199
转载 thymeleaf中使用小于号
thymeleaf前端模板中对**<** 符号有转译效果,在js中使用会在后台报元素类型 “plan.getNumRoutes” 必须后跟属性规范 “>” 或 “/>”。<script type="text/javascript" th:inline="javascript">for (var j = 0; j < plan.getNumRoutes();...
2019-06-27 10:50:29 1127
原创 钉钉开发E应用web-view问题:页面之间发送消息
在钉钉上开发企业内部应用,需要嵌入百度地图做定位使用位置信息接口已经写好,需要ajax调用即可钉钉page下创建内嵌页面baidu.axml <web-view id="web-view-1" src="http://localhost:8080/baidu.html" onMessage="test"></web-view>baidu.js关键字:onMe...
2019-06-20 16:21:01 2938 6
原创 RestTemplate请求百度鹰眼服务接口
描述:通过百度鹰眼服务获得车辆轨迹、历程没有考虑并发问题,只是做简单的接口调试,如果有时间可以尝试自己封装一些实体,和工具类用到的接口public class URLConstant {/** *添加点坐标 POST请求 */ public static final String BAIDUMAP_ADDPOINT = "http://yingyan.baidu.com/api/...
2019-06-20 16:01:24 757
翻译 bootstrap-datetimepicker时间控件的使用
前端模板用的是thymeleaf,首先引用bootstrap的css和js<link th:href="@{/css/bootstrap-datetimepicker.css}" rel="stylesheet" /><link th:href="@{/css/bootstrap-datetimepicker.min.css}" rel="stylesheet" />...
2019-04-28 10:33:26 809
翻译 jersey实现Restful的一个小
说明:了解了一下jersey这个demo也是我在9月份从网上抄写的,找了好多,忘了记转载地址。。。所以先行说声抱歉!!!环境: jdk1.7、eclipseserver服务:目录结构图pox.xml&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch...
2018-10-15 09:47:31 251
翻译 thymeleaf的绑定click事件
最近在学习spring boot ,因为spring boot 的前端模板默认推荐thyme leaf,所以也开了一下thyme leaf绑定button的onclick事件&lt;input type="button" th:onclick="'javascript:fungetone(\''+${con.uid}+'\');'" value = "修改" /&
2018-09-30 20:54:19 19532
翻译 Linux下MySQL远程连接
Linux下的MySQL远程连接设置Linux版本:centos6.5版本MySQL版本:5.5因为MySQL在刚刚安装完成之后,默认不支持远程连接,所以需要授权!授权法:grant all privileges on*.* to '用户名'@'%' identified by '登录密码' with grant option;其中 all privileges 为权限 *....
2018-09-29 20:46:23 1393
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人