![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常见错误
梁云亮
电 话:13264494458
微 信:13264494458
扣 扣:369950806
展开
-
vue3 报错: ‘defineProps‘ is not defined no-undef
【代码】vue3 报错: ‘defineProps‘ is not defined no-undef。原创 2023-08-22 13:10:16 · 685 阅读 · 0 评论 -
Component name “Home“ should always be multi-word
【代码】Component name “Home“ should always be multi-word。原创 2023-08-20 10:01:25 · 412 阅读 · 0 评论 -
Require statement not part of import statement @typescript-eslint/no-var-requires
【代码】Require statement not part of import statement @typescript-eslint/no-var-requires。原创 2023-08-19 23:34:44 · 47 阅读 · 0 评论 -
thymeleaf显示Map中的数据
先判断errors是否为空,如果不为空输出其中的account,否则输出空字符。在后台传来的是HashMap对象,而不是一个实体对象时使用。这样的方式来获取比较安全;进行判断该key是否存在,然后再用。原创 2023-04-04 14:17:20 · 526 阅读 · 0 评论 -
Springboot2.6整合Swagger3时报错this.condition is null的解决方案
这个问题主要出现在Spring Boot 2.6及以后,只要是Spring Boot 2.6引入的新PathPatternParser导致的。第一步:修改application.yml文件,将Path匹配策略切换回ant_path_matcher。原创 2022-10-05 12:19:57 · 415 阅读 · 0 评论 -
springboot中mockmvc报错:cannot invoke “com.alibaba.druid.support.http.stat.WebAppStat.beforeInvoke()“
通过查看WebStatFilter源代码发现,有个变量竟然是null,而该变量是在Filter#init()进行赋值的,说明spring boot单元测试没有对Filter进行初始化,但是Filter在请求过程中被执行了,因此抛出了空指针异常。官方给出的文档中对@SpringBootTest注解,有详细的说明,我们可以指定webEnvironment属性,默认是WebEnvironment.MOCK,它是不会对Filter、Servlet进行初始化的,因此我们在使用单元测试的时候要注意了。好在,spring原创 2022-07-09 11:57:10 · 1566 阅读 · 0 评论 -
SpringMVC 自定义日期时间转换器时报错:Unable to determine source type <S> and target type <T> for your Converter
说明:采用传统方式书写时不会报错,但优化代码为lambda时就报错了,解决方案,只需要在方法上面添加注解就可以了原创 2022-07-08 01:19:19 · 675 阅读 · 0 评论 -
spring boot configration annotation processor not configured
spring boot configration annotation processor not configured原创 2022-07-04 13:02:57 · 193 阅读 · 0 评论 -
Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 19; columnNumbe
错误SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.java.lang.IllegalStateException: Failed to原创 2022-05-21 10:29:25 · 1183 阅读 · 0 评论 -
@ResponseBody 返回乱码
场景@ResponseBody@GetMapping("/getBrandById")public Brand getBrandById(Integer brandId) { final Brand brand = brandService.selectByPrimaryKey(brandId); return brand;}上面不乱码,而下面乱码@ResponseBody@GetMapping("/getInfoById")public String getInfoByI原创 2022-05-17 11:20:11 · 540 阅读 · 0 评论 -
Vue TypeError: this.$confirm is not a function
错误在使用element ui,采用局部引入时候,报错TypeError: this.$confirm is not a function。因为没有在vue的实例上挂载confirm和confirm和confirm和message导致的报错解决方案修改element.js文件:1 引入messageBox 插件import {MessageBox} from ‘element-ui’2 在vue 的原型对象上挂载confirmVue.prototype.$confirm = Mess原创 2020-11-23 09:01:45 · 16137 阅读 · 6 评论 -
Intellij 报错 Unescaped xml character 的解决办法
错误解决办法原创 2021-12-29 18:15:47 · 371 阅读 · 0 评论 -
Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPointerEx
设置编辑窗口的宽度原创 2020-05-04 18:56:56 · 2392 阅读 · 1 评论 -
‘xxxx‘ is declared but its value is never read.Vetur(6133)
错误解决方案点击设置,搜索vetur 然后把Validate js/ts in原创 2021-12-12 23:03:49 · 4676 阅读 · 0 评论 -
Intellij2021.2.3中使用MyBatisCodeHelperPro报错:NO MODULE FOUND
报错Intellij2021.2.3中创建Maven形式的WEB项目,使用MyBatisCodeHelperPro报错:解决方案只创建一个Maven框架项目:在src/main目录下创建webapp/WEB-INF目录:添加WEB支持:接下来在webapp目录下面写网页代码就可以了...原创 2021-11-10 09:12:45 · 1800 阅读 · 1 评论 -
Unable to start LiveReload server
错误原因DevToolsProperties中配置了一个端口,默认是35729。当启动多个项目时,多个端口冲突,从而导致热部署插件不生效。解决方案在application.properties文件中加上以下配置:原创 2021-09-06 21:44:02 · 807 阅读 · 0 评论 -
E492: Not an editor command: WQ
问题解决方案sudo apt-get install tofrodos; sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix原创 2021-09-04 12:51:27 · 6499 阅读 · 1 评论 -
cannot build artifact ‘xxxx‘ because it isincluded into a circular dependency
错误解决办法原创 2021-08-16 14:45:33 · 190 阅读 · 0 评论 -
Intellij中Mapper SQL警告:unable to resolve table
快速输出快速定义成员变量快速格式化快速判空快速取反快速返回快速循环快速lambda代码抽取cmd+alt+V 抽取局部变量cmd+Alt+C 抽取静态变量cmd+Alt+F 抽取成员变量cmd+Alt+P 抽取方法参数cmd+Alt+M 抽取方法cmd+ alt + t编辑代码块代码模板idea为我们预设了一些模板,我们可以通过command+j来查看,并生成代码我们也可以自定义模板:Settings -> Editor -> Liv原创 2020-05-22 14:10:32 · 1475 阅读 · 1 评论 -
SpringBoot整合Swagger启动报警告
错误SpringBoot整合Swagger,在启动项目的时候,启动日志中报了一个警告信息Unable to interpret the implicit parameter configuration with dataType: Integer, dataTypeClass: class java.lang.Void,如下图所示:这是因为Swagger中的注解@ApiImplicitParam有一个属性为dataTypeClass,该属性的默认值为Void.class,因为没有指定dataTypeC原创 2021-07-17 11:24:48 · 1807 阅读 · 0 评论 -
解决警告:An illegal reflective access operation has occurred
Intellij 取消自动显示参数含义原创 2019-11-20 09:05:13 · 2027 阅读 · 0 评论 -
java: 程序包org.springframework.boot不存在
错误java: 程序包org.springframework.boot不存在解决方案原创 2021-06-06 14:37:57 · 381 阅读 · 0 评论 -
Unable to start LiveReload server
错误描述SpringBoot采用热部署插件devtools时,报错Unable to start LiveReload server,如下图:解决方案在applications.yml文件中为DevToolsProperties中配置一个端口就可以了。DevTools的默认端口是35729spring: devtools: livereload: port: 35731...原创 2021-06-06 09:53:05 · 4466 阅读 · 0 评论 -
Spring Boot 注解执行器
错误提示上面错误提示信息的意思是:Spring Boot配置注解执行器没有配置。配置注解执行器配置完成后,当执行类中已经定义了对象和该对象的字段后,在配置文件中对该类赋值时,便会非常方便的弹出提示信息。解决方案按如下所示添加依赖即可:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-proces原创 2021-05-20 09:23:09 · 293 阅读 · 0 评论 -
Failed to resolve loader: sass-loader You may need to install it.
错误脚手架方式创建vue3项目,添加ElementPlus后,运行会报错误:Failed to resolve loader: sass-loader You may need to install it.解决方案npm install sass-loader -Dcnpm install node-sass --save-dev原创 2021-04-16 20:53:20 · 1065 阅读 · 0 评论 -
java:程序包sun.misc不存在
错误使用JDK11时,发现sun.misc.Base64Encoder和sun.misc.Base64Decoder无法使用,找不到导入的包:解决方案原因是JDK中的/lib/tool.jar和/lib/rt.jar已经从Java SE 9中删除,具体处理办法:方法1. 切换JDK1.8方法2. 直接用 java.util.Base64.Encoder 和 java.util.Base64.Decoder 替代使用://需要导入的包import java.util.Base64.原创 2021-04-02 17:50:47 · 35930 阅读 · 2 评论 -
Swagger报错:java.lang.NumberFormatException: For input string: ““
错误Springboot在整合swagger3.0.0时没有问题,但查看API时报错:解决方案在项目pom.xml文件中增加以下两个依赖:<dependency> <groupId>io.swagger</groupId> <artifactId>swagger-annotations</artifactId> <version>1.5.22</version></dependenc原创 2021-03-23 19:39:28 · 316 阅读 · 0 评论 -
解决:ESLint: Expected indentation of 4 spaces but found 6.(indent)
方法一修改.eslintignore文件方法二修改配置文件 .eslintrc.js ,在 .eslintrc.js文件的rules:{}中加入如下代码:"indent": ["off", 2],方法三去掉eslint验证原创 2021-03-10 22:58:54 · 3466 阅读 · 0 评论 -
CentOS7安装nodejs
错误在centos下安装nodejs 官网下载安装包 解压 扔到远程机器上 添加环境变量 执行node -vv12.13.0正常执行npm -v/usr/local/node-v12.13.0-linux-x64/bin/npm:行1: …/lib/node_modules/npm/bin/npm-cli.js: 没有那个文件或目录解决方案解决方法就是去将下载下来的压缩包直接上传到CentOS,然后在linux下面解压:tar -xJvf node-v12.13.0-linux原创 2021-02-01 07:27:58 · 403 阅读 · 0 评论 -
TypeError: dateObject.getTime is not a function
在使用ElementUI的日期选择组件el-date-picker时,报错:选择日期时报错:解决办法第一步:初始化时间为日期格式去掉rules中的type:‘date’:原创 2020-11-06 18:40:13 · 611 阅读 · 0 评论 -
The field file exceeds its maximum permitted size of 1048576 bytes.
出现这个错误的原因SpringBoot在文件上传时出现了The field file exceeds its maximum permitted size of 1048576 bytes.错误,显示文件的大小超出了允许的范围。原因是SpringBoot内嵌tomcat默认所能上传的文件大小为1M,超出这个就会报错。解决这个问题需要更改下面两个配置:multipart.maxFileSizemultipart.maxRequestSize解决方案Spring Boot 1.3.x之前mult原创 2020-10-10 18:40:41 · 6094 阅读 · 2 评论 -
No active profile set, falling back to default profiles: default
错误解决方案原创 2020-06-02 16:01:23 · 2321 阅读 · 0 评论 -
Spring Boot Annotion processor not found in classpath
错误Spring Boot Annotion processor not found in classpath解决办法需要在pom中添加dependences<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-config...原创 2020-05-01 16:37:24 · 139 阅读 · 0 评论 -
nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
错误nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBExceptionorg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ define...原创 2020-05-01 16:35:13 · 1377 阅读 · 2 评论 -
Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfigurat
报错pom.xml加入了jpa的引用, 项目启动时会去读yml或properties文件里的jdbc配置,没有就报错:Error creating bean with name ‘org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration’: Unsatisfied dependency expressed t...原创 2020-04-30 00:03:52 · 5696 阅读 · 0 评论 -
Error attempting to get column ‘hiredate‘ from result set. Cause: java.sql.SQLFeatureNotSupportedEx
错误mybatis中使用Java8日期LocalDate、LocalDateTime时会出现如下错误:Error attempting to get column ‘hiredate’ from result set. Cause: java.sql.SQLFeatureNotSupportedException解决办法添加Maven依赖:<dependency> ...原创 2020-04-18 14:39:12 · 1201 阅读 · 0 评论 -
Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the cl
错误SSM框架整合时,报错:Unable to initialize ‘javax.el.ExpressionFactory’. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead,如下图所示:解决办法添加依赖:<dependenc...原创 2020-04-15 15:37:38 · 4410 阅读 · 0 评论 -
not master and slaveOk=false
错误在SECONDARY中执行命令时报错解决方法出错的因为slave默认不许读写原创 2020-03-22 23:33:40 · 1965 阅读 · 0 评论 -
org.apache.hbase.thirdparty.com.google.common.cache.CacheLoader
错误:Hive与HBase整合过程中创建关联表正确,往Hive中导入数据时出现错误:解决办法将guava-11.0.2.jar拷贝到${HADOOP_HOME}/bin目录下面原创 2020-03-11 20:59:18 · 2271 阅读 · 4 评论 -
java.lang.NoSuchMethodError: 'void org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism(ja
错误解决办法添加Maven依赖:<dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-auth</artifactId> <version>3.1.2</version></dependenc...原创 2020-03-10 12:50:29 · 4062 阅读 · 1 评论