2022年5月13日

.gitignore片段

摘要: HELP.md ### Java ### target/ #!.mvn/wrapper/maven-wrapper.jar ./mvn mvnw mvnw.cmd !**/src/main/**/target/ !**/src/test/**/target/ ### STS ### .apt_gen 阅读全文

posted @ 2022-05-13 23:12 guardianbo 阅读(69) 评论(0) 推荐(0) 编辑

2022年3月3日

简易日志工具类

摘要: 依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.7</version> </dependency> 代码 import cn.hutool.core.date. 阅读全文

posted @ 2022-03-03 12:35 guardianbo 阅读(111) 评论(0) 推荐(0) 编辑

2022年2月27日

redis pub/sub 之 spring-boot-starter-redis 代码片段

摘要: mvn 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 阅读全文

posted @ 2022-02-27 20:14 guardianbo 阅读(125) 评论(0) 推荐(0) 编辑

springboot 之 spring-boot-starter-parent

摘要: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.4</version> <relativePath/> </pa 阅读全文

posted @ 2022-02-27 15:36 guardianbo 阅读(682) 评论(0) 推荐(0) 编辑

2022年2月21日

Docker 之 Windows Hyper-V 导致的端口占用问题

摘要: 为什么会出现保留端口? 为什么排除一个系统的保留端口执行的是 "netsh interface ipv4 add excludeportrange ..." 而不是 "netsh interface ipv4 delete excludeportrange ..."?"netsh interface 阅读全文

posted @ 2022-02-21 18:48 guardianbo 阅读(870) 评论(0) 推荐(0) 编辑

2022年2月19日

maven settings.xml pom.xml 配置片段

摘要: pom.xml 片段 <?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-insta 阅读全文

posted @ 2022-02-19 11:13 guardianbo 阅读(100) 评论(0) 推荐(0) 编辑

Swagger 注解使用代码片段

摘要: Knife官网:https://doc.xiaominfo.com/knife4j/ @Api @Api 用在类上,说明该类的作用。可以标记一个 Controller 类作为 Swagger 文档资源,使用方式代码如下所示。 @Api(tags={"用户接口"}) public class User 阅读全文

posted @ 2022-02-19 10:52 guardianbo 阅读(185) 评论(0) 推荐(0) 编辑

slf4j + logback 日志配置

摘要: slf4j 加 logback-classic mvn 依赖 <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.1.8</version> </depe 阅读全文

posted @ 2022-02-19 10:34 guardianbo 阅读(593) 评论(0) 推荐(0) 编辑

JUnit5 单元测试代码片段

摘要: 引入 mvn 依赖 <!-- JUnit5 --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.5.2</version> <sc 阅读全文

posted @ 2022-02-19 09:15 guardianbo 阅读(107) 评论(0) 推荐(0) 编辑

2022年2月17日

Idea 环境传统 JavaWeb 项目搭建

摘要: 环境 日期:2022年2月17日 环境版本:idea2021、maven3、jdk8、tomcat10 下载解压 tomcat Idea 配置应用服务器 Idea 创建 maven javaweb 项目 清理 pom.xml 中不必要的东西。 web.xml 模板 注意:web-app 版本错误可能 阅读全文

posted @ 2022-02-17 12:00 guardianbo 阅读(321) 评论(0) 推荐(0) 编辑

导航