踩坑记录
文章平均质量分 50
学习过程中遇到的一些坑,记录一下,便于以后参考
AnswerCoder
用代码寻找世界的答案
展开
-
docker compose部署kafka问题记录
docker compose 部署kafka及遇到的问题docker-compose.yml文件如下version: '3'services: zookepper: image: wurstmeister/zookeeper # 原镜像`wurstmeister/zookeeper` container_name: zookeeper # 容器名为'zookeeper' volumes:原创 2022-02-09 22:19:29 · 2510 阅读 · 0 评论 -
springboot应用在服务器部署jar包后每隔一段时间挂一次
SpringBoot 应用开发完成后,在生产环境部署后,每隔一段时间应用会挂一次,无缘无故突然就挂了…日志也看不出什么东西:10:20:56.897 INFO o.s.s.c.ThreadPoolTaskScheduler [218] - Shutting down ExecutorService 'taskScheduler'10:20:56.897 INFO o.s.s.c.ThreadPoolTaskExecutor [218] - Shutting down ExecutorService原创 2021-10-24 19:03:34 · 2051 阅读 · 1 评论 -
centos7安装docker-compose报[TCP connection reset by peer]解决方法
centos7安装docker-compose方法参考此博文:https://blog.csdn.net/weixin_44616792/article/details/108451040原创 2021-06-11 08:06:44 · 1173 阅读 · 1 评论 -
执行yum update时出现Another app is currently holding the yum lock; waiting for it to exit...的解决方法
Linux使用yum安装包时,提示Another app is currently holding the yum lock; waiting for it to exit...解决方法:rm -f /var/run/yum.pid参考:http://blog.itpub.net/29812844/viewspace-1988770/原创 2021-03-28 13:54:28 · 150 阅读 · 0 评论 -
解决java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present的问题
今天在配置springcloud的Eureka注册中心时,启动总是报如下错误:D:\java\jdk-11.0.6\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.a原创 2021-01-31 17:46:23 · 2531 阅读 · 2 评论 -
SpringMVC中已经配置了静态资源,依然无法访问,css可以访问成功,但图片就是加载不出来。
SpringMVC中已经配置了静态资源,css可以访问成功,但图片就是加载不出来<mvc:resources mapping="/img/**" location="/img/"/><mvc:resources mapping="/css/**" location="/css/"/>解决方法:清除target重启服务器就好了。...原创 2020-12-22 22:43:01 · 816 阅读 · 0 评论 -
Spring中@resource 注解不可用解决方法
@resource 注解不可用解决方法:来自https://blog.csdn.net/nanhuaibeian/article/details/106149037在pom.xml中添加以下依赖<dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.2&l原创 2020-12-17 21:08:57 · 751 阅读 · 2 评论 -
解决Error:java: 不再支持源选项 5。请使用 6 或更高版本
第一次运行Maven项目报错:Error:java: 不再支持源选项 5。请使用 6 或更高版本。这里需要确保项目的以下几个地方与我们本地的java版本一致一劳永逸的解决方法https://blog.csdn.net/qq_42583206/article/details/108375173...原创 2020-12-11 18:40:53 · 1254 阅读 · 0 评论 -
第一次创建Maven项目报错:Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5......
第一次创建Maven项目失败报错信息如下:Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plu原创 2020-12-11 17:29:09 · 12992 阅读 · 14 评论 -
IDEA解决:SSL证书的问题:unable to find valid certification path to requested target
报错信息:javax.net.ssl.SSLHandshakeException:PKIX path building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target解决方法:https://jadyer.cn/2012/07/29/ssl-pkix/...原创 2020-12-06 00:14:01 · 12653 阅读 · 0 评论 -
IDEA启动Tomcat 中文乱码问题
文章目录Tomcat启动乱码问题解决IDEA启动Tomcat控制台输出中文乱码问题:手动启动Tomcat控制台乱码问题Tomcat启动乱码问题解决IDEA启动Tomcat控制台输出中文乱码问题:每次启动控制台都是乱码,强迫症看起来好糟心参考网上很多方法,发现很多修改注册表、修改配置文件,修改Tomcat里的文件的等,发现都不管用。还是下面的方法简单实用找到Help——> Edit Custom VM Options…添加下面代码-Dfile.encoding=UTF-83原创 2020-11-20 12:30:44 · 357 阅读 · 0 评论 -
Tomcat访问项目出现HTTP状态404-未找到,类型 状态报告 描述 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。Apache Tomcat/9.0.40
Tomcat访问项目servlet页面跳转时,出现HTTP状态404-未找到,类型 状态报告 描述 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。Apache Tomcat/9.0.40如下图所示解决方法:IDEA,上方菜单栏点击Run–>Edit Configurations…,选择Deployment,将Application context里面的内容删除,置空即可...原创 2020-11-20 00:47:23 · 59814 阅读 · 56 评论 -
jdbc报错:java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized
报错信息如下:java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time z原创 2020-11-18 11:22:22 · 145 阅读 · 0 评论