![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错总结
初遇见
在你选择的道路上,坚持走下去,时间总会给你答案
展开
-
【Maven拉不到】Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:2.8.2
Maven 包拉不下来原创 2023-07-23 15:44:46 · 1248 阅读 · 0 评论 -
The Tomcat connector configured to listen on port 8080 failed to start.
问题:8080端口被占用解决办法:1、在cmd中输入netstat -ano,找到8080端口对应的PID2、taskkill /f /t /im 【pid】taskkill /f /t /im 19944原创 2022-05-25 17:57:06 · 140 阅读 · 0 评论 -
报错 fatal: The current branch html has no upstream branch. To push the current branch and set the
场景:远程上有已存在的项目的后端代码,想要把这个项目的前端代码推送上去。做的步骤:1、git status2、 git add . 注意add和.之间有空格3、git commit - m “前端”4、git remote add origin5、git push报错:fatal: The current branch html has no upstream branch.To push the current branch and set the remote as upstream原创 2022-05-08 21:17:56 · 510 阅读 · 0 评论 -
git报错:remote: [session-474e1980] Access denied fatal: unable to access... 403
报错:在输入git remote add origin连接远程仓库的时候报错$ git push --set-upstream origin htmlremote: [session-474e1980] Access deniedfatal: unable to access 'https://gitee.com/huyi612/hm-dianping.git/': The requested URL returned error: 403错误原因:1.输入命令 cat ~/.gitcon原创 2022-05-08 21:05:07 · 3194 阅读 · 2 评论 -
swagger3 ui无接口 报错 java.lang.NullPointerException: null
运行项目进入http://localhost:8080/doc.html界面,没有接口。程序报错java.lang.NullPointerException: null at springfox.documentation.swagger2.mappers.RequestParameterMapper.bodyParameter(RequestParameterMapper.java:264) ~[springfox-swagger2-3.0.0.jar:3.0.0] at springfox.d原创 2022-05-07 13:32:59 · 2693 阅读 · 0 评论 -
0 test classes found in package ‘com.xxx.xxx‘
报错原因:在工程中有空文件夹解决办法:删除空文件夹后重新启动原创 2022-05-04 16:36:05 · 3043 阅读 · 0 评论 -
报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
错误原因:mysql的配置的yaml文件里内容写错了。解决办法:改为正确的配置信息spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/fmmall2?characterEncoding=utf-8&useUnicode=true username: root password: 123456...原创 2022-05-04 14:33:53 · 974 阅读 · 0 评论 -
报错org.junit.runners.model.InvalidTestClassError: Invalid test class ‘com.jia.dao‘
报错原因:@Test注解导错包解决办法:修改为import org.junit.Test;原创 2022-05-04 14:31:39 · 353 阅读 · 0 评论 -
Project ‘org.springframework.boot:spring-boot-starter-parent:2.4.4‘ not found
问题:Project ‘org.springframework.boot:spring-boot-starter-parent:2.4.4’ not found解决办法:点击File-Invalidate Caches/Restare清一下缓存重新启动原创 2022-04-29 15:58:41 · 768 阅读 · 0 评论 -
Springboot集成Swagger2报404找不到swagger-ui.html解决方案
1.降低springboot版本修改为2.5.6 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <version>2.5.6</version> </dependency> <dependency> <原创 2022-04-16 19:45:28 · 4006 阅读 · 0 评论 -
A component required a bean of type ‘com.jia.fmmall.service.UserService‘ that could not be found.
问题:A component required a bean of type ‘com.hao.mall.service.UserService‘ that could not be found.原因:在UserServiceImpl没有加@Service注解解决办法:在UserServiceImpl在加入@Service注解@Servicepublic class UserServiceImpl implements UserService {}...原创 2022-04-10 13:08:45 · 465 阅读 · 0 评论 -
IDEA 配置mapper模板
步骤入下图所示mapper模板<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace=""></mapper>...原创 2022-04-09 11:12:18 · 1287 阅读 · 1 评论 -
IDEA连接mysql报错:Server returns invalid timezone.Need to set ‘serverTimezone‘ property.
问题:Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ propert解决办法:是因为mysql中默认驱动是UTC,与本地时间相差8小时点击第一张图上的set time zone,进入下如所示页面,把UTC改为GMT后点击apply应用后点击ok...原创 2022-04-09 10:56:12 · 1053 阅读 · 0 评论 -
Description: A component required a bean of type ‘com.jia.dao.UserDao‘ that
解决办法:在启动类上添加@MapperScan("com.jia.dao")@MapperScan("com.jia.dao")@SpringBootApplicationpublic class SpringbootMybatisApplication { public static void main(String[] args) { SpringApplication.run(SpringbootMybatisApplication.class, args);原创 2022-04-04 13:14:48 · 711 阅读 · 0 评论 -
Request processing failed; nested exception is java.lang.NullPointerException
错误原因:Impl的实现类里的调Dao忘记注入了解决办法:加入@Resource注解注入到类中原创 2022-04-04 13:06:33 · 861 阅读 · 0 评论 -
Xshell6中连接阿里云服务器时出现ssh服务器拒绝了密码的问题
解决办法:更改阿里云服务器密码后重新连接操作:在实例与镜像中点击实例-更多-密码/密钥-重置实例密码-重启实例原创 2022-03-28 11:00:31 · 1259 阅读 · 0 评论 -
ids for this class must be manually assigned before calling save(): com.jia.enity.Book;
报错:ids for this class must be manually assigned before calling save(): com.jia.enity.Book; nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.jia.enity.Book解决办法:因原创 2022-01-28 09:53:34 · 928 阅读 · 0 评论 -
vue3 +el-menu实现路由跳转失败
vue3 +el-menu实现路由跳转失败解决办法:要在 标签中加 router属性<el-menu router><el-container style="height: 500px; border: 1px solid #eee"> <el-aside width="200px" style="background-color: rgb(238, 241, 246)"> <el-menu router>原创 2022-01-27 11:14:13 · 2806 阅读 · 0 评论 -
idea中terminal输入‘npm‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
解决办法:1、File - Settings2、将shell path地址换成如下。C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,重启idea。原创 2022-01-25 19:36:20 · 1524 阅读 · 0 评论 -
解决安装了node.js在cmd中node npm不是内部命令
解决办法:1、此电脑邮件选择高级系统设置-选择环境变量2、在系统变量中找到path-编辑3、把node.js安装的地址复制下来添加到环境变量中4、点击确定,然后在cmd原创 2022-01-25 18:42:40 · 1977 阅读 · 0 评论 -
解决Xshell6和xshell6提示“要继续使用此程序必须应用到最新的更新或者新版本”
解决办法:1、用UE打开nslicense.dll2、Ctrl+F 搜索 7F0C81 找到它下发一栏的第二位,将“86”改为“83”就完成了,然后保存原创 2022-01-21 19:17:21 · 634 阅读 · 2 评论 -
Unable to connect to 127.0.0.1:6379 的解决办法
问题:Unable to connect to 127.0.0.1:6379解决办法:1、在redis的目录下输入cmd2、redis-server.exe redis.windows.conf3、redis-cli.exe -h 127.0.0.1 -p 6379原创 2022-01-19 18:19:32 · 26395 阅读 · 3 评论 -
Springboot 集成 Swagger2 报错 Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception
问题:Springboot 集成 Swagger 报错Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException解决办法:Swagger版本是2.9.2、springboot 版本是2.6.2,因为springboot版本太高,缺少swagger运行所需要的环境,回退到之前的版本,我这里回退到 2.5.6,记得把spring-boo原创 2022-01-10 17:33:38 · 596 阅读 · 0 评论 -
Cannot resolve org.apache.logging.log4j:log4j:1.2.17
原因:log4j 1.2.17版本以后,就改变jar包了改为log4j-core解决办法: <!-- log4j--> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.1原创 2022-01-07 12:52:05 · 7017 阅读 · 1 评论 -
Error resolving template [index], template might not exist
问题:启动项目报错Error resolving template [index], template might not exist解决办法:1、先检查项目结构,先静态资源文件的位置是否放错了2、查看pom.xml中thymeleaf依赖是否导入正确一开始我只导入了下面的依赖,但是报错 <dependency> <groupId>org.springframework.boot</groupId> <a原创 2022-01-07 10:34:53 · 3530 阅读 · 1 评论 -
Exception processing template “xxx“: Error resolving template [index], template might not exist or
报错:Exception processing template “index”: Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers。在登录的时候报错pom.xml中导入了thymeleaf依赖了 <!-- thymeleaf--> <dependency&g原创 2022-01-03 13:44:29 · 2728 阅读 · 0 评论 -
Springboot项目报错Circular view path [index]: would dispatch back to the current handler URL
报错:Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)**原因:**项目中没有导入 spring-boot-starter-thy原创 2022-01-02 19:25:38 · 2386 阅读 · 0 评论 -
Optional int parameter ‘id‘ is present but cannot be translated into a null
问题:报错Optional int parameter ‘id’ is present but cannot be translated into a null@RestControllerpublic class UserController { @Autowired private UserMapper userMapper; //根据ID删除 @GetMapping("/deleteUser") public String deleteUser(int id)原创 2022-01-02 13:51:07 · 659 阅读 · 0 评论 -
Unknown database ‘xxx‘
问题:启动项目报错Unknown database ‘xxx’解决办法:数据库名错了,改成已存在对的即可。原创 2022-01-02 13:36:02 · 706 阅读 · 0 评论 -
Failed to bind properties under ‘spring.datasource‘ to javax.sql.DataSource:
问题:springboot整合druid时,引入了druid的数据源,导入了log4j依赖报错Failed to bind properties under ‘spring.datasource’ to javax.sql.DataSource:1、application.yaml 配置文件spring: datasource: username: root password: 123456 #假如时区报错了,就增加一个时区的配置就可以了serverTimezone-UT原创 2021-12-30 14:00:57 · 756 阅读 · 0 评论 -
IDEA 导入依赖不自动下载
在pom.xml中导入依赖druid时候不自动下载<dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.5</version> </dependency>解决办法:点击pom.xml右键-Maven-Reload project...原创 2021-12-30 13:05:42 · 1099 阅读 · 0 评论 -
已导入lombok依赖@AllArgsConstructor和@NoArgsConstructor失效
在保证pom.xml中导入了lombok依赖<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId></dependency>解决办法1、点击File->Settings->Plugins->搜索Lombok->下载插件->重启IDEA2、如原创 2021-12-17 18:17:09 · 968 阅读 · 0 评论 -
idea配置spring: profiles:显示弃用
解决办法:spring: config: activate: on-profile: test原创 2021-12-14 11:37:23 · 610 阅读 · 0 评论 -
SpringBoot @Email用不了解决办法
解决办法需要validation启动器,在pom.xml中加入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId></dependency>...原创 2021-12-13 18:18:06 · 626 阅读 · 0 评论 -
IDEA生成Spring Boot项目时,报错:Error:Read timed out
用IDEA生成项目的时候弹出:Error:Read timed out解决办法:1)点击File-Settings2)System Settings下的HTTP Proxy->点击Auto-detext proxy settings3)点击CHECK CONNECTION会弹出下面的框,在里面输入https://start.spring.io后点击ok4)最后显示下图为成功5)在新建项目就可以了。...原创 2021-12-11 13:21:24 · 4184 阅读 · 3 评论 -
explain使用+慢SQL分析
MySQL查询截取分析步骤:一、开启慢查询日志,捕获慢SQL二、explain+慢SQL分析三、show profile查询SQL语句在服务器中的执行细节和生命周期四、SQL数据库服务器参数调优一、开启慢查询日志,捕获慢SQL1、查看慢查询日志是否开启SHOW VARIABLES LIKE '%slow_query_log%';2、开启慢查询日志SET GLOBAL slow_query_log=1;3、查看慢查询日志阙值SHOW [GLOBAL] VARIABLES LIKE转载 2021-10-06 11:26:41 · 617 阅读 · 0 评论 -
端口号被占用如何解决
1)首先先输入netstat -ano 查看被占用的端口号的PID2)输入对应PID的值 taskkill /F /pid 237883)重新运行就好使了。原创 2021-09-06 16:31:18 · 724 阅读 · 0 评论 -
报错根据标记文件中的TLD或attribute指令,attribute[value]不接受任何表达式
<%@ taglib 少了个空格<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>--%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>原创 2021-08-30 18:57:20 · 2475 阅读 · 1 评论 -
SpringMVC在多文件上传的时候报Request processing failed; nested exception is org.springframework.beans.BeanInst
报错Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [[Lorg.springframework.web.multipart.MultipartFile;]: No default constructor found; nested exception is java.lang.NoSuchMethodExce原创 2021-08-22 11:42:07 · 1587 阅读 · 0 评论 -
Unknown column ‘pictureData‘ in ‘field list‘解决办法
错误原因:数据库中序列和实体类的序列不一样。解决办法:看数据库中的字段和实体类的字段是否一样。拼错了字母实体类因该是pictureData。原创 2021-08-07 12:29:46 · 360 阅读 · 0 评论