1 2 3 4 5 ··· 33 下一页
摘要: 方法一采用接口(Interface)的中变量默认为static final的特性。方法二采用了Java 5.0中引入的Enum类型。方法三采用了在普通类中使用static final修饰变量的方法。方法四类似方法三,但是通过函数来获取常量。/** * Method One */interface C 阅读全文
posted @ 2024-06-06 15:56 金虹巴巴 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http:// 阅读全文
posted @ 2024-06-06 11:21 金虹巴巴 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 查某天的: history | grep "2023-03-10" 搜索 复制 阅读全文
posted @ 2024-05-31 19:55 金虹巴巴 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 使用cat命令查看系统版本 cat /etc/os-release 使用uname命令查看系统版本 uname -a 搜索 复制 阅读全文
posted @ 2024-05-30 10:13 金虹巴巴 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 注册服务 sudo vim /etc/systemd/system/test.service [Unit]Description=test Java ApplicationAfter=network.target[Service]User=rootWorkingDirectory=/data/jav 阅读全文
posted @ 2024-05-29 10:34 金虹巴巴 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 打开cmd,定位到jar所在文件目录: 前台启动 UTF-8 java -jar -Dfile.encoding=UTF-8 C:\javatest\test.jar 后台启动: 使用 javaw.exe 启动 jar 包,并不会在窗口打印日志,会直接在后台运行进程,关掉窗口,进程继续跑 javaw 阅读全文
posted @ 2024-04-24 15:26 金虹巴巴 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 修改项目构建地址为:https://start.aliyun.com 搜索 复制 阅读全文
posted @ 2024-04-22 11:16 金虹巴巴 阅读(23) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE test CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci; ALTER TABLE test CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicod 阅读全文
posted @ 2024-04-17 09:19 金虹巴巴 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 拉取出现这个问题:Clone succeeded, but checkout failed.You can inspect what was checked out with 'git status'and retry the checkout with 'git checkout -f HEAD' 阅读全文
posted @ 2024-04-07 11:03 金虹巴巴 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1、启动Redis > redis-server [--port 6379] 如果命令参数过多,建议通过配置文件来启动Redis。 > redis-server [xx/xx/redis.conf] 6379是Redis默认端口号。 2、连接Redis > ./redis-cli [-h 127.0 阅读全文
posted @ 2024-03-11 16:51 金虹巴巴 阅读(37) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 33 下一页