![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小技巧
BIG_PEI
码农,全栈
展开
-
原码、反码、补码
原码、[反码]、补码原创 2022-07-04 16:32:42 · 1011 阅读 · 5 评论 -
微信图片鉴黄
app朋友圈图片鉴黄原创 2022-06-01 18:34:46 · 263 阅读 · 0 评论 -
大无语事件 谷歌浏览器无标题
先上解决办法 右键管理员身份运行导致原因 估计是没有正常关机网上百度一大堆粘贴复制相互抄袭的文章 佛了瞎jb乱说 要把之前安装的软件都删掉原创 2022-01-13 09:47:44 · 1040 阅读 · 0 评论 -
线程实现的两种方式区别-简单纪要
继承thread类和实现runnable接口两者都是执行thread类的run方法,前者任务逻辑代码和对象创建是分离的,前者更好和线程池高级api结合用runnable更灵活 将任务和线程对象的创建分离开,脱离了thread类的继承体系java推荐组合优先于继承关系 runnable和thread式组合关系 让代码更灵活还有区别请打在评论区,Thanks♪(・ω・)ノ...原创 2022-01-06 21:53:09 · 290 阅读 · 0 评论 -
git pull報錯You can replace “git config“ with “git config --global“
git-pull-default问题背景当使用 git 版本为 2.27.0 以上时,使用git pull命令出现以下的警告:hint: Pulling without specifying how to reconcile divergent branches ishint: discouraged. You can squelch this message by running one of the followinghint: commands sometime before your n原创 2022-01-05 18:57:37 · 12025 阅读 · 2 评论 -
spring-boot-cli window安装 简单使用
1.去官网下载后缀为https://repo.spring.io/ui/native/release/org/springframework/boot/spring-boot-cli/2.3.7.RELEASE2.解压到一个文件夹3.配置环境变量4.验证是否安装成功spring --version5.初始化springboot项目spring init --name=websocket-demo -dependencies=websocket websocket-demo完成 欧原创 2021-10-29 18:22:59 · 201 阅读 · 0 评论 -
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException
springboot启动报错o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext -Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘follo原创 2021-05-20 10:12:49 · 10854 阅读 · 0 评论 -
多线程 ---线程池使用
private ExecutorService executor = Executors.newFixedThreadPool(5); try { String finalOptional = optional; executor.execute(new Runnable() { @Override public v...原创 2021-04-13 14:15:03 · 92 阅读 · 0 评论 -
获取get请求返回值
Map<String, Object> map = new HashMap<>(8); map.put("uid", entity.getUid()); String result = HttpURLConnectionUtil.get(IELTS_URL, map); JSONObject jsonObject = JSONObject.fromObject(result); Map..原创 2021-03-25 20:45:08 · 2455 阅读 · 0 评论 -
GIT版本还原
// 还原修改并回滚到之前以前提交的版本git reset --hard//清理还原后未托管的本地文件,不清理的话git pull 会失败git clean -xdf**git撤销已经push的提交**简要版:git loggit reset --soft 43dc0de914173a1a8793a7eac31dbb26057bbee4git push origin master --force...原创 2021-03-22 21:25:10 · 75 阅读 · 0 评论 -
枚举创建
public enum PictureTypeEnum { TEACHER(1), EXCELLENT(2), GRADUATE(3); private Integer value; private PictureTypeEnum(Integer type) { this.value = type; } public Integer getValue() { return v原创 2021-03-12 19:51:17 · 109 阅读 · 0 评论 -
SQL判断是否是今天 昨天 本月 上个月
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult"> <include refid="selectDictTypeVo"/> <where> <if test="dictName != null and dictName != ''"> AND dict_name like concat('%', #原创 2021-02-07 00:39:13 · 1402 阅读 · 0 评论 -
xml文件模糊查询写法 sql函数find_in_set
find_in_set用法:CREATE TABLE `tb_test` ( `id` int(8) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `list` varchar(255) NOT NULL, PRIMARY KEY (`id`));INSERT INTO `tb_test` VALUES (1, 'name', 'daodao,xiaohu,xiaoqin');INSERT INTO `tb_te..原创 2021-02-07 00:28:00 · 2195 阅读 · 3 评论 -
数据库设置默认值,防止添加记录变为NULL
可以通过if标处理 当插入的属性为null,或者为’’ 则不插入值,当数据库给默认值原创 2021-02-07 00:07:48 · 589 阅读 · 1 评论