logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

springboot多环境日志配置,启动时logback-test.xml文件冲突导致启动失败:openFile(null,true) call failed. java.io.FileNotFoun...

  如题,在项目中用到了4个环境的日志配置文件,启动时在application.properties中指定环境,让springboot自动加载logback对应的配置文件:  每个环境的日志目录都不一样,比如sit和test环境分别是:  如果spring.profiles.active配置的是test,那么一切正常,非test环境,则启动失败。比如我现在配置spring.profi...

#java#spring#spring boot +1
git连接报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

  在Linux上已经安装过git(自己搭建)了,本机(windows)想连接过去,通过git bash敲了下clone命令提示没权限:$ git clone git@111.11.111.11:code.gitCloning into 'code'...The authenticity of host '111.11.111.11 (111.11.111.11)' can't be e...

#ssh#linux
spring boot打开tomcat的access日志

  spring boot虽说内置了tomcat,但打出来的是jar包而非war包,更没有access日志,那么如何打开access日志呢?只需在application.properties中加入相关配置即可。这里仍以多环境配置为例,原有配置就不贴了(参见spring boot配置文件、日志配置和代码的多环境配置 ),下面只贴打开access日志需要新增的配置:  application.pr..

#tomcat#java#spring boot
linux安装redis时报collect2: fatal error: cannot find 'ld'和In file included from adlist.c:34:0:

  如题,看了下该ld命令所在文件:[root@centos redis-4.0.14]# whereis ldld: /usr/bin/ld.gold /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gz  发现ld是一个软连接,而且该软连接一直在闪烁:[root@centos redis-4.0.14]# ll /usr...

#linux#redis#java +2
安装docker报错:https://download.docker.com/linux/centos/7/i386/stable/repodata/repomd.xml: [Errno 14] PY...

  如题,执行docker安装命令报错:[root@centos ~]# yum install docker-ceLoaded plugins: fastestmirror, securitySetting up Install ProcessLoading mirror speeds from cached hostfilehttps://download.docker.com/...

#docker#centos#linux
加载rocksdb实例报错:java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\librocksdbjn...

  项目的缓存中用到了rocksdb,实例化时报错了:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloContext' defined in class path resource [spring-core.xml]: Invocat...

#java#spring
IDEA启动tomcat报错:java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext、Contai...

  先看错误日志:27-May-2019 17:07:29.838 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/9.0.0.M2627-May-2019 17:07:29.844 信息 [main] org.apache.catali...

#java#maven#tomcat +1
安卓apk包重复签名问题

  安卓数字签名指的是对apk包做文件摘要并加密,在安装apk包时做解密和验证以保证包体不被篡改。这里先普及下签名和验证流程。签名文件保存在apk包里META-INF目录下,包含3个文件:1、后缀为MF的是摘要文件。首先遍历apk包,将除META-INF目录外其他所有文件用SHA1生成摘要信息并用base64编码。如果你手动改变了apk包中的文件,那么在apk包安装验证时,改后的文件摘要信息与..

#算法#java#python +1
到底了