
错误总结
GastonPeng
进步的困难是有的,但是必须得需要你自己去适应进步的过程,办法总比困难多!
展开
-
sql中排序和分页同时使用存在的问题
话不多说,放链接https://www.jianshu.com/p/ead491db9749原创 2021-02-18 11:38:26 · 466 阅读 · 0 评论 -
spring boot项目resources下的静态文件打包发布后找不到问题
报错信息: cannot be resolved to absolute file path because it does not reside in the file systemspringboot项目读取resource目录下的 txt 文件 ,在本机可以,发布后读取不到。报错的代码如下:public static List<String> getRank() throws IOException { ClassPathResource classPathReso原创 2021-02-18 11:18:58 · 1701 阅读 · 0 评论 -
Centos8安装docker-ce的时候errordman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64 requires runc >= 1.0.0-57
在Centos8环境安装docker的时候报错:Error: Problem: problem with installed package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64 - package podman-1.6.4-10.module_el8.2.0+305+5e198a41.x86_64 requires runc >= 1.0.0-57, but none of the providers can be inst原创 2020-11-18 20:09:28 · 2025 阅读 · 5 评论 -
This application requires a Java Runtime environment 1.8.0
本人在使用Mobileatlascreator的时候打开exe文件出现这个错误:This application requires a Java Runtime environment 1.8,解决办法如下:打开命令行输入redegit进入注册表,看如下目录和参数值设置,如果没有则进行添加,如果有不一致请修改,打开目录:[HKEY_LOCAL_MACHINE\SOFTWARE\Jav...原创 2020-04-22 14:38:37 · 7484 阅读 · 1 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
在StackOverflow论坛中发现,这个问题与“Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean”如出一辙。因为应用很简单,所以不是技术论坛中大家常说的应用入口类缺少@SpringBootApplication标注,或者是Spring bean缺...原创 2020-04-17 16:43:32 · 590 阅读 · 0 评论 -
安装Oracle库第一步出现"执行安装程序验证的初始设置失败"提示
1.测试c$ share是否成功,cmd里打net use \\localhost\c$,失败会是这样子::系统错误53The network path was not found成功是这样子: :命令成功完成2.失败的话继续第一步:检查AutoShareServer和AutoShareWks注册表值,以确保未将它们设置为0。依次点击“开始→运行”,输入regedit,然后...原创 2020-04-02 08:37:24 · 899 阅读 · 0 评论 -
ORA-01033:ORACLE initialization or shutdown in progress
很美好的一天,这一次不知道你是在开发项目,还是在学习技能,还是替别人解决bug,反正你是遇到了一个问题:”ORA-01033:ORACLE initialization or shutdown in progress “ 登录oracle数据库失败的一个bug提示,遇到问题不要慌,先拿出手机来拍个照发个抖yin正文开始1.打开dos命令 输入 sqlplus /nolog;2.输入...原创 2020-03-11 15:28:22 · 290 阅读 · 0 评论 -
前后端分离中浏览器请求跨域的headers取不到值的问题
最近做了个token认证,是前后端分离,大致思路就是用户登陆,成功之后返回token,放在本地sessionstorage中,之后,前端做强求拦截,对于之后的请求,将token信息附加到请求头中。为了使请求头中Authorization可以被后端获取到,跨域时候做了如下设置:@Component@Order(1)public class AllowOriginFilter...原创 2019-03-11 19:27:40 · 3071 阅读 · 0 评论 -
关于eclipse和sts的选择
springcloud的时候依赖进来的包在配置文件中不能使用,但是在eclipse中没有问题。个人建议使用eclipse相对稳定,sts去下载的时候五花八门,不知道哪个稳定安全。...原创 2019-02-25 09:49:50 · 11984 阅读 · 0 评论 -
遍历hashmap 删除元素报错nested exception is java.util.ConcurrentModificationException
Java中的Map如果在遍历过程中要删除元素,除非通过迭代器自己的remove()方法,否则就会导致抛出ConcurrentModificationException异常。JDK文档中是这么描述的:The iterators returned by all of this class's "collection view methods" are fail-fast: if the map i...原创 2018-12-26 19:43:12 · 2075 阅读 · 0 评论 -
mybatis 报错:Caused by: java.lang.NumberFormatException: For input string
1.改为:test="param eq 'A'.toString()"2.原因是OGNL语法的问题:这里 'A' 将被认为是 char 类型,但是 'AA' 或者 "A" 将被作为 String类型。所以我们可以用转义:<if test="name == &quot;A&quot;">3.或者将 <if test="index == 'A'"&a原创 2018-12-05 15:55:21 · 2412 阅读 · 0 评论 -
Cannot change version of project facet Dynamic Web Module to 3.0
1.Cannot change version of project facet Dynamic Web Module to 3.0解决办法以下两个版本保持一致原创 2018-07-06 16:53:11 · 148 阅读 · 0 评论 -
One or more constraints have not been satisfied
One or more constraints have not been satisfiedDeployment Assembly跟java版本不匹配,即maven默认编译版本与使用的jdk不匹配 <build> <finalName>springquartz</finalName> <plugins> <plugi...原创 2018-07-06 16:53:01 · 213 阅读 · 0 评论 -
web.xml is missing and &lt;failOnMissingWebXml&gt; is set to true
web.xml is missing and <failOnMissingWebXml> is set to true原因mvn为web项目,war包形式,但是配置中缺失了web.xml,加上配置为false就ok原创 2018-07-06 16:52:52 · 376 阅读 · 2 评论 -
The project was not built since its build path is incomplete. Cannot find the class file for org.spr
在eclipse中使用maven搭建activemq时出现的错误1.Description Resource Path Location TypeThe project was not built since its build path is incomplete. Cannot find the class file for org.springframework.beans.factory....原创 2018-06-28 17:19:06 · 1843 阅读 · 0 评论 -
导入maven项目到eclipse报错missing:jars
可是我的本地仓库有这些包啊!!!折腾了一上午后终于解决了,下面是我的解决过程:1.检查本地仓库的地址有没有设对,在D:\apache-maven-3.5.0\conf目录下有个settings.xml文件,里面可以自定义本地仓库地址,默认是在C:\Users\Administrator\.m2\repository。不过我另外指定了地址:在<settings> </setting...原创 2018-07-10 14:46:34 · 236 阅读 · 0 评论 -
spring boot开发需不需要创建entity 返回数据字段有大写有小写不统一
最近在项目中遇到一个问题,前台开发不同接口返回的数据有大写的字段有小写的字段,造成他们使用起来非常不方便,此时就需要我们做后台的好好考虑考虑了。问题1:我使用的mybaytis,在字段类型和关联查询(比如我用到了自关联查询树),这些情况下肯定是会用到entity实体类的。问题2:在查找各种设备的接口中,我没有按设备类型写不同的接口,而是封装成一个接口动态查询,再加上每个设备表中的字段个数和含义是不...原创 2018-06-28 17:18:58 · 2158 阅读 · 0 评论 -
docker错误总结
启动容器的时候报错:docker: Error response from daemon: driver failed programming external connectivity on endpoint peaceful_sammet (0ffcb446e5de6905d872c4e20080243fce8f9928d68b857f6b4a23eadc38f2f3): iptables...原创 2018-11-16 14:52:29 · 269 阅读 · 0 评论