docker-compose通过容器名连接mysql
这是Mysql的配置:version :'3'services: desneyMysql: container_name: app_mysql image: mysql:5.7 build: context:./mysql ports:-"3307:3306" volumes:-./mysql/conf:/etc/mysql/conf.d-./mysql/logs:/logs-./mysql/data:/var/lib/mysql command:['mysqld','--innodb-buffer-pool-size=80M','--character-set-server=utf8mb4','--collation-server=utf8mb4_unicode_ci','--default-time-zone=+8:00','--lower-case-table-names=1'] environment: MY...
WebStorm和 VSCode集成cmder
VS Code配置Cmder使用 ctrl+, 快捷键打开设置页面,选择右上角的{ }切换到settings.json文件,添加下面的配置即可{..."terminal.integrated.shell.windows":"C:\\windows\\System32\\cmd.exe","terminal.integrated.shellArgs.windows":["/k D:\\Tools\\cmder_mini\\vendor\\init.bat"],...}WebStorm配置Cmderctrl+alt+s 打开设置窗口,选择 Tools>Terminal设置"cmd.exe" /k "D:\cmder\vendor\init.bat"
Expected one result (or null) to be returned by selectOne(), but found: 2
mybatis-plus中getOne方法只能取一条数据,如果取得多条数据会报错,要么换其他方法,要么只选择其中一条,在条件构造器Wrapper结尾加上.last(“limit 1”)即可只选一条(第一条) //根据时间获取gift private Gift generateGift(String openid) { LambdaQueryWrapper<Gift> query = new LambdaQueryWrapper<>(); query.eq(Gift::getUsed, 0); query.le(Gift::getWintime, TimeUtil.getNowTimeDate()); query.last("limit 1"); boolean fl...
docker安装neo4j
docker run -d --name neo4j \-p 7474:7474 \-v /mnt/home/sunyu/danone/neo4j-community-4.4.8/data:/data \-v /mnt/home/sunyu/danone/neo4j-community-4.4.8/logs:/logs \-v /mnt/home/sunyu/danone/neo4j-community-4.4.8/conf \–env NEO4J_AUTH=neo4j/danone-neo4j \neo4j:4.4.8-community
JACKSON和FASTJSON处理返回JSON数据中为NULL字段不显示
JACKSON1.实体上将此注解放在属性上,如果该属性为null则不参与序列化(为null的字段不显示)如果放在类上边,那对这个类的全部属性起作用,展示所有字段。@JsonInclude(JsonInclude.Include.ALWAYS) //放在类上,展示所有字段Include.Include.ALWAYS 默认展示所有字段Include.NON_DEFAULT 属性为默认值不序列化Include.NON_EMPTY 属性为 空("") 或者为 NULL 都不序列化Include.NON_NULL 属性为NULL 不序列化 FASTJSON package com.aiqin.bms.slcs.api.config; import com.ali...
linux查看端口占用 netstat -tln|grep 8080
linux查看端口占用netstat -tln|grep 8080
clash订阅转换搭建
后端搭建:docker run -d --name=subconverter --restart=always -p 25500:25500 tindy2013/subconverter:latest 然后再用下面的命令确认一下状态curl http://localhost:25500/version前端:docker stop artefact-vpn-configdocker rm artefact-vpn-configdocker rmi artefact-vpn-configdocker build -t artefact-vpn-config .docker run -d --name=artefact-vpn-config --restart=always -p 8089:8089 artefact-vpn-config
unity3d mysql error: The given key was not present in the dictionary.
please update(upgrade) your mysql.data.dll to right version.
js/jquery实现连线拖拽
先看效果图:https://blog.peos.cn/wp-content/uploads/2022/10/2022-10-31-16.03.53.mp4code:<!DOCTYPE html><html><body><style type="text/css"> body, svg{width: 100vh; height: 100vh;} svg{ position: relative; }</style><script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script><h1>My f...
jenkinsfile
1pipeline { agent any environment{ def build_env="dev" def mailFrom="xxxxx@163.com" def mailRecipients="xxxxx@xxx.com" } stages { stage('Pull Code') { steps { // checkout([$class: 'GitSCM',branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[credentialsId: '511c4c13-45bc-4c9f-ba38-3b37d05e4a9a', url: 'git@github.com:xxxx/CICD.git']]]) } ...