随笔分类 - JAVA
JAVA一些常用的方法
摘要:java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at org.ap
阅读全文
摘要:环境配置:(或以上版本,必须) 版本有对应关系 JDK 版本:1.8 Caffeine 版本:2.8.0SpringBoot 版本:2.2.2.RELEASE 也可以不与SpringBoot结合 1、添加maven依赖 <dependency> <groupId>com.github.ben-man
阅读全文
摘要: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
阅读全文
摘要:引入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
阅读全文
摘要:官网地址:https://docs.spring.io/spring-boot/docs/2.1.12.RELEASE/reference/html/using-boot-build-systems.html#using-boot-starter Table 13.1. Spring Boot ap
阅读全文
摘要:Windows系统安装ActiveMQ参考:https://www.cnblogs.com/pxblog/p/14580404.html 1、配置连接信息 spring: activemq: broker-url: tcp://192.168.1.28:61616 user: admin passw
阅读全文
摘要:首先在QQ互联: https://connect.qq.com/manage.html 申请账号,并且进行资料审核,同时创建应用(设置回调地址) 申请应用完后,会有app_ID、app_KEY等参数 官方JAVA SDK demo下载:https://pan.xunlew.com/s86815 官方
阅读全文
摘要:导入jar包 IKAnalyzer2012_u6.jar下载链接:https://pan.xunlew.com/s86789 maven <dependency> <groupId>com.janeluo</groupId> <artifactId>ikanalyzer</artifactId> <
阅读全文
摘要:package com.IdCard; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Ma
阅读全文
摘要:java.lang.ClassNotFoundException: org.apache.commons.beanutils.DynaBean at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
阅读全文
摘要:官方文档:https://help.aliyun.com/document_detail/101414.html?spm=a2c4g.11186623.6.626.2cef6220yxh5l7 jar包下载地址:https://yvioo.lanzous.com/b00nos2le 密码:383m
阅读全文
摘要:打开tomcat目录的bin/catalina.bat文件,在开头处,增加:
阅读全文
摘要:TemplateData.java 1 package com.weixin.weixin.template; 2 3 public class TemplateData { 4 private String value; //值 5 private String color; //展示的颜色 6
阅读全文

浙公网安备 33010602011771号