上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 54 下一页
摘要: 在使用mysql时,常常要设置一个id值,并设置为自动增长 如果想要复位重新计数的话,那么应该使用以下语句 ALTER TABLE `表名` AUTO_INCREMENT = 1; 但需要注意的是,除非表为空,那么该语句执行后,仍然以最后一个最大的值往后增加 所以,如果想要重新计数,那么一定是要清空 阅读全文
posted @ 2021-03-17 09:59 野狼谷 阅读(868) 评论(0) 推荐(0)
摘要: 安装 1、Visual studio code(VS code) 往期博客:https://www.cnblogs.com/technicist/p/12677052.html 2、Node.js与cnpm 往期博客:https://www.cnblogs.com/technicist/p/1268 阅读全文
posted @ 2021-03-15 16:31 野狼谷 阅读(226) 评论(0) 推荐(0)
摘要: 具体错误信息: org.apache.ibatis.binding.BindingException: Mapper method 'com.xx.xx.xx.xx.xx.getCount attempted to return null from a method with a primitive 阅读全文
posted @ 2021-02-20 13:11 野狼谷 阅读(3920) 评论(1) 推荐(0)
摘要: 1.在main启动项添加一个注解@EnableScheduling package com.example.springmybatis; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot. 阅读全文
posted @ 2021-01-15 17:02 野狼谷 阅读(725) 评论(0) 推荐(0)
摘要: 调用微信对账单接口 public static void main(String[] args) throws Exception { // 随机数 String str = WXPayUtil.generateNonceStr(); // data Map<String, String> data 阅读全文
posted @ 2021-01-15 17:01 野狼谷 阅读(556) 评论(0) 推荐(0)
摘要: 项目开发中经常需要执行一些定时任务,比如需要在每天凌晨时候,分析一次前一天的日志信息。Spring为我们提供了异步执行任务调度的方式,提供TaskExecutor 、TaskScheduler 接口。 SpringBoot中使用两个注解:@EnableScheduling、@Scheduled来简单 阅读全文
posted @ 2021-01-15 17:00 野狼谷 阅读(1262) 评论(0) 推荐(0)
摘要: 这里展示将dev分支合并到test分支首先切换到test分支 按下图所示操作 阅读全文
posted @ 2021-01-07 15:59 野狼谷 阅读(2196) 评论(0) 推荐(0)
摘要: java中逗号分隔的字符串和List相互转换 1、将逗号分隔的字符串转换为List 1 2 3 String str = "a,b,c"; List<String> result = Arrays.asList(str.split(",")); 2、将List转换为逗号分隔的字符串 (1) 利用Gu 阅读全文
posted @ 2020-12-20 23:53 野狼谷 阅读(4287) 评论(0) 推荐(0)
摘要: UEditro是一款比较好用的富文本编辑器,所谓的富文本编辑器就是和服务器交互的数据不是普通的字符串文件,而是一些内容包含比较广的字符串,一般是指的html页面,目前比较好用的是百度的UEditor,到官方网站下载:http://ueditor.baidu.com/website/download. 阅读全文
posted @ 2020-10-27 14:03 野狼谷 阅读(5365) 评论(0) 推荐(0)
摘要: 之前每次都是通过循环去写,感觉代码不够优雅,百度了一下,查到如下的写法,先记下来: List<Long> list = new ArrayList<Long>(); list.add(1L); list.add(2L); list.add(3L); System.out.println(list); 阅读全文
posted @ 2020-09-04 17:20 野狼谷 阅读(2836) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 54 下一页