摘要:
1、先创建application.properties 文件,在resources文件夹,右键 new -> Resource Bundle 如下图所示,填写名称 2、生成如下图所示文件 3、将此文件后缀名改为yml.右键->Refactor->Rename 如下图所示,点击Refactor 4、重 阅读全文
摘要:
git rm -r --cached . #新增的忽略文件没有生效,是因为git是有缓存的,而之前的文件在缓存中,并不会清除掉,还会继续提交,所以更新.gitignore文件,要清除缓存文件 git add . git commit -m 'update .gitignore' git push o 阅读全文
摘要:
在开发过程中有时会用到maven仓库里没有的jar包或者本地的jar包 1、打开jar所在文件夹,假设我们要将 taobao-sdk-java-auto_1479188381469-20200121.jar 安装到本地Maven仓库 mvn install:install-file -Dfile=t 阅读全文
摘要:
1、项目右键后,点击“Git - Show History” 这里会显示有历史提交的版本记录(这里我们假设要回滚到 “提交” 版本中) 2、选中 “提交” ,右键Copy Revision Number 3、回到项目,右键-Git-Repository-Reset HEAD 4、Reset Type 阅读全文
摘要:
一、加入devtools依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depe 阅读全文
摘要:
官方SDK文档地址: https://help.aliyun.com/document_detail/57756.html?spm=a2c4g.11186623.6.904.4e0d3bd9VbkICO 1、引入maven依赖 <dependency> <groupId>com.aliyun</gr 阅读全文
摘要:
RequestUtils.java 操作类 package cn.utils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import o 阅读全文
摘要:
1、安装docker依赖(已安装可以不用安装) yum install -y docker 2、搜索镜像 docker search elasticsearch 如果出现以下报错 Cannot connect to the Docker daemon at unix:///var/run/docke 阅读全文
摘要:
引入maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> yml配置 spring: mail: h 阅读全文
摘要:
1. 使用@Component注解标记工具类MailUtil: 2. 使用@Autowired注入我们需要的bean: 3. 在工具类中编写init()函数,并使用@PostConstruct注解标记工具类,初始化Bean: @Component public class MailUtil { @A 阅读全文
