06 2019 档案
摘要:1.pom设置 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
阅读全文
摘要:server配置server.address指定server绑定的地址 server.compression.enabled是否开启压缩,默认为false. server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默认值为:te
阅读全文
摘要:通用的git ignore文件 创建文件名 .gitignore 并复制以下内容
阅读全文
摘要:maven resource 组件可以把pom的变量替换到相关的resouces目录中的资源文件变量 示例项目:内容中心 (文章管理) 生成jar包,生成docker ,生成k8s文件 1.项目结构 2. 父级项目pom文件 2.2实体类 2.3接口 3 content-server项目 具体业务服
阅读全文
摘要:nginx日志监控 yum install goaccess 安装使用教程 goaccess access.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d-%b-Y' --l
阅读全文
摘要:Nginx基于连接探测,如果发现后端异常,在单位周期为fail_timeout设置的时间,中达到max_fails次数,这个周期次数内,如果后端同一个节点不可用,那么接将把节点标记为不可用,并等待下一个周期(同样时常为fail_timeout)再一次去请求,判断是否连接是否成功。如果成功,将恢复之前
阅读全文
摘要:SpringBooot中的CommandLineRunner接口会在所有Spring Beans初始化之后,SpringApplication.run()之前执行。 1.添加pom引用 2.添加两个CommandLineRunner 3.启动项目 4.运行结果
阅读全文
摘要:1.设置pom引用 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文

浙公网安备 33010602011771号