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配置Cmder ctrl+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字段不显示
JACKSON 1.实体上 将此注解放在属性上,如果该属性为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-config docker rm artefact-vpn-config docker rmi artefact-vpn-config docker 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.