摘要:
maven项目编译时,保留方法参数名称信息: pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.9.0</ver 阅读全文
摘要:
导出: mysqldump -h127.0.0.1 -uroot -p"your_password" your_database_name your_table_name --where=" user_id = 'zhangsan'" --no-create-info --no-create-db 阅读全文
摘要:
8核16G SET PERSIST sync_binlog = 0; set PERSIST innodb_flush_log_at_trx_commit = 2; set PERSIST innodb_buffer_pool_size = 4294967296; set PERSIST sort_ 阅读全文
摘要:
配置eslintrc.json rules节点下 "max-len": ["warn", 140], "linebreak-style": ["warn", "windows"], "array-callback-return": ["warn"], "no-unused-vars": ["warn 阅读全文
摘要:
setter传统模式 UserInfo userInfo = new UserInfo(); userInfo.setUserId("zhangsan"); userInfo.setUserName("张三"); userInfo.setAge(18); 每一行都需要分号来隔断,影响编码效率。 链式 阅读全文
摘要:
代码 public class MyLogNotice extends AppenderBase<ILoggingEvent> { @Override protected void append(ILoggingEvent iLoggingEvent) { // TODO 此处添加自定义实现 } } 阅读全文
摘要:
本地文件复制到远程机通过22端口,左边本地文件的绝对路径,右边远程存放目录: scp -P 22 /path/filename.txt root@10.10.1.1:/remote/path/ 阅读全文
摘要:
启动ollama, 并指定一个大模型, spring接入ollama, 依赖 <dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-ollama-spring-boot-starter</artifa 阅读全文
摘要:
binlog binlog虽然提供了数据变化的日志记录,但文件本身增长很快,可以定期进行清理。 删除指定日期之前的binlog PURGE MASTER LOGS BEFORE '2024-10-01 18:00:30'; 阅读全文
摘要:
Java24发布了内存优化提案,该提案是将对象头压缩到64位,比先前的96或128节省了33%或50%内存,能有效改善Java占用内存大的问题。 目前还是体验型参数,需要手工开启: java -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObject 阅读全文