自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 spring-boot-maven-plugin 2.0.0.RELEASE之前的版本打jar包classpath顺序错乱导致同包同名类覆盖失效

Log4j2远程执行漏洞使用无法实例化的JndiLookup同包同名类替换修复, 解决不能通过升级log4j版本来修复漏洞

2021-12-23 15:05:12 2046

原创 Spring AOP术语

TermsDescriptionAspectThis is a module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement...

2021-11-02 14:47:20 111

原创 Spring Cloud Eureka

Eureka 介绍Eureka是一个服务注册和发现模块。Eureka是一个高可用的组件,它没有后端缓存,每一个实例注册之后需要向注册中心发送心跳。Eureka 注册中心使用Maven 依赖参考: Spring-Cloud-Edgware-Release-Notes, MVN RepositoryEureka Serverspring-cloud-starter-eureka-server(Spring Cloud Edgware 之前的版本)<dependency>

2021-08-26 17:42:01 128

原创 Java 浮点数转字符串出现科学计数法

解决办法:使用NumberFormat或DecimalFormatNumberFormat numberFormat = NumberFormat.getInstance();// 是否使用千分位格式(即每三位,分隔)numberFormat.setGroupingUsed(false);// 四舍五入numberFormat.setRoundingMode(RoundingMode.HALF_UP);// 最小小数位numberFormat.setMinimumFractionDigi

2021-07-02 10:25:26 1114

原创 Maven 依赖管理机制

目录传递依赖依赖调解依赖管理依赖作用域传递依赖传递依赖没有级别限制, 只有出现循环依赖问题依赖调解依赖调解决定当出现多个不同版本的依赖时使用哪个版本.但是你也可以在你的项目显式指定依赖的版本.当出现多个不同版本的依赖时,依赖调解使用就近原则来选择依赖的版本,即根据依赖传递的深度来判断,传递深度越低的优先.如果出现多个相同深度的传递依赖时,先定义的优先.A ├── B │ └── C │ └── D 2.0 └── E └── D 1.0项目A中D

2021-02-24 17:15:26 170 1

原创 Maven version 指定版本不生效

四个Maven项目A,B,C,D项目A锁定了D的版本为1.0项目B使用项目A作为父项目, 项目B引用了项目C项目C引用了项目D,并指定D的版本为2.0出现问题: 项目B中C的版本号不是2.0, 而是1.0原因: 传递依赖使用就近原则解决:方法一:在B项目中锁定D的版本为2.0方法二:在B项目中引入版本为2.0的D...

2021-02-23 14:12:48 4594 3

原创 @SessionAttributes和@ResponseBody同时使用出现Cannot create a session after the response has been committed

前端获取验证码图片时出现GET http://localhost:8080/code net::ERR_INCOMPLETE_CHUNKED_ENCODING 200错误后端报错严重 [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [dispatcherServlet] in context with path [] threw except

2020-07-19 18:40:51 477

原创 SpringMVC 静态资源拦截

有三种方式:方式一:手动排除法在我们的web.xml添加如下配置<servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.jpg</url-pattern></servlet-mapping>其他地方保持不变,这个粒度显然是比<url-pattern>/</url-pattern>更小的,它会将*.

2020-07-17 22:26:41 242

原创 运行测试类出现Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

用idea maven项目运行测试类时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project poemMaven: There are test failures.Please refer to D:\code\Java\IdeaProjects\poemMaven\target\surefire-reports for the in.

2020-07-16 16:14:41 693

原创 jupyter-notebook 创建多个虚拟环境运行python

先安装好jupyter notebook# 用pip 安装(使用豆瓣源)pip install jupyter -i https://pypi.douban.com/simple首先创建虚拟环境(以virtualenv 创建虚拟环境为例)# 你可以使用-p 参数指定Python版本virtualenv venv激活虚拟环境source venv/bin/act...

2019-10-16 17:58:03 333

转载 SpringMVC 请求参数绑定之 @RequestParam

1. OverviewIn this quick tutorial, we’ll explore Spring’s@RequestParamannotation.Simply put, we can use@RequestParamto extract query parameters, form parameters and even files from the request...

2019-08-14 16:16:02 328

原创 Mac 安装nodejs最好的方式,不用担心权限问题

首先安装node版本管理器nvmcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash如果你装了wget也可以使用以下命令安装nvmwget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh ...

2019-08-06 22:52:34 2105 2

原创 Mac 删除官网pkg包安装的nodejs

# change to the directory which your package is installed intocd /# remove filespkgutil --pkgs | grep nodejs | xargs -n 1 pkgutil --only-files --files | xargs -n 1 sudo rm -vf# remove directories...

2019-08-06 22:18:14 551

原创 Ubuntu 18.04 Tomcat 验证码无法加载报错:/opt/jdk1.8.0_211/jre/lib/i386/libfontmanager.so: libgcc_s.so.1

Ubuntu Server 18.04 Tomcat 验证码无法加载报错:/opt/jdk1.8.0_211/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: 无法打开共享对象文件: 没有那个文件或目录需要32位的libgcc_s.so.1库支持,使用以下命令安装apt install lib32gcc1如果权限不足使用以下命令:...

2019-07-17 10:33:37 1401

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除