- 博客(70)
- 收藏
- 关注
原创 sqlyog datetime CURRENT_TIMESTAMP报错
解决:ALTER TABLE `soft` MODIFY `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间';
2022-05-25 16:12:36
355
原创 配置导致rabbitmq消息丢失
#关闭rabbitmq启动连接检查# rabbitmq:# listener:# direct:# auto-startup: false# simple:# auto-startup: false
2022-05-20 09:44:01
288
原创 单机部署nginx
步骤:cd /optsudo rm -r nginxtar -zxvf nginx-1.9.9.tar.gzcd nginx-1.9.9/./configure --with-http_ssl_modulemakemake installcd /usr/local/nginx/cd confvim nginx.conf文件内容:#user nobody;worker_processes 1;#error_log logs/error.log;#error_.
2022-05-14 21:55:17
211
原创 git命令
git项目文件夹右击: git bash here#初始化本地仓库git init#加到缓存git add .#加到本地仓库git commit -m "青山智慧基建项目"#添加远程仓库地址git remote add origin https://senscape.online:20443/aid/jijian.gitgit push origin mastergitgit branchgit checkout devgit pullgit add .git
2022-05-13 09:50:04
137
原创 log4j漏洞
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <!-- 移除Log4j相关依赖包 --> <exclusion> <groupId...
2022-05-13 09:49:09
129
原创 linux命令
apt install vim删除文件:rm a.txt删除文件夹rm -r a创建文件touch a.txt创建文件夹mkdir a
2022-05-13 09:46:51
193
原创 docker命令
镜像:死的容器 = 镜像启动后docker load -i mysql.tar: 引入本地镜像(静态,未启动,启动变成容器container)docker images: 查看镜像docker ps: 查看启动成功容器docker ps -a: 查看所有容器,包括未启动成功的启动镜像(启动后即为容器): docker run -di --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 daocloud.io/library.
2022-05-13 09:46:14
234
原创 pageHelper实现分页
SpringBoot学习-(七)SpringBoot分页插件PageHelper_写代码的lorre的博客-优快云博客_springboot分页插件
2022-04-29 10:02:31
663
原创 xml和mapper放在同一路径下
在springBoot中使用Mapper类问题_@Mapper_@MapperScan_xml文件跟mapper分开_xml文件跟mapper在同一个目录下_Archie_java的博客-优快云博客<resources> <resource> <directory>src/main/java</directory> <includes> <incl.
2022-04-27 15:25:03
1115
原创 mybatis-plus包含mybatis包
问题:解决:<!--<dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.6</version></dependency>-->
2022-04-26 13:48:26
710
原创 linux已启动java服务,但telnet不通端口
关闭防火墙即可:# systemctl stop firewalld.service# service iptables status
2022-04-24 18:12:29
2062
原创 关闭组件连接健康检查
#关闭rabbitmq启动连接检查spring: rabbitmq: listener: direct: auto-startup: false simple: auto-startup: false#关闭rabbitmq健康检查management: health: rabbit: enabled: false#关闭redis连接 健康检查management: health: redi.
2022-04-24 18:08:47
706
原创 【无标题】
version: "3"services: db: image: mysql:5.7 container_name: aiot-mysql ports: - "3306:3306" volumes: - /opt/mysql/conf:/etc/mysql/conf.d - /opt/mysql/logs:/logs - /opt/mysql/data:/var/lib/mysql environment: .
2022-04-21 13:58:36
239
原创 mysql数据查询优化
1.加普通索引,修改where条件,explain查看命中2.pageHelper插件limit语句优化:先只查id,后遍历10w条:8s-60ms
2022-04-07 11:24:28
266
原创 创建普通索引
索引生效:EXPLAIN SELECT id, car_no, car_type, pic_url, duty_peo, tel_no, cap_type, cap_time, present_time, create_time FROM car_pass_record WHERE create_time > CURDATE()不生效:EXPLAIN SELECT id, car_no, car_type, pic_url, duty_peo, tel_no, cap_typ...
2022-03-28 14:33:52
227
原创 获取JSON中所有的KEY
package com.senscape.sensor.rabbitmq;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import java.util.ArrayList;import java.util.Arrays;import java.util.Iterator;import java.util.List;import java.util.concurrent.atomi.
2022-03-28 14:32:19
10277
原创 低级判空错误
zIotMonitor.getSensorSerialno() == "" || zIotMonitor.getSensorSerialno() == nullzy.getGatewaySerialno() == null || zy.getGatewaySerialno().isEmpty()
2021-12-30 10:42:46
160
原创 maven默认大于配置:非resources文件夹下配置文件默认不读取
<build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/...
2021-12-29 17:33:05
210
原创 mysql实现group by后取各分组的最新一条
mysql实现group by后取各分组的最新一条_小葫芦的博客-优快云博客_mysql分组取最近一条
2021-12-27 16:20:39
657
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人