![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误
haijiao12138
走向大佬!放纵能满足低级欲望,克制能满足高级欲望!
展开
-
打印输出时,最好不要加汉字
1--2--修改:3---不加await和async时:原创 2019-12-17 16:11:08 · 144 阅读 · 0 评论 -
SpringBoot单元测试类创建
自己创建一个单元测试类遇到的坑:注入service并调用增删改查:import com.demo.DemoApplication;import com.demo.entity.Eth;import com.demo.service.IEthService;import org.junit.jupiter.api.Test;import org.springframework.boot...原创 2019-11-28 11:01:02 · 587 阅读 · 1 评论 -
SpringBoot集成MybatisPlus报错
错误分析:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-11-28 09:50:43.044 ERROR 3136 --- [ main] o.s.boot.SpringAppli...原创 2019-11-28 09:59:40 · 873 阅读 · 0 评论 -
数据库连接报错:Java连接mysql数据库出现The server time zone value '�й���ʱ��' is unrecogni的解决
spring.datasource.url=jdbc:mysql://localhost:3306/eth?serverTimezone=UTC添加后缀即可原创 2019-11-27 19:10:27 · 334 阅读 · 0 评论 -
Navicat使用pgSQL报错不能建表
我使用的是pgSQL9的版本,同时Navicat使用的是11.2.9的版本,结果不支持建表;修改:改为Navicat的版本为12新版本,即可通过建表这一问题;原创 2019-11-27 18:01:15 · 1708 阅读 · 1 评论 -
数据库mysql报错
错误:The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.原因:数据库请检查是不是没有打开原创 2019-11-25 15:53:28 · 271 阅读 · 0 评论 -
SpringBoot使用@Autowired注入报错
1---错误如下:2--解决办法:原创 2019-11-22 10:02:13 · 936 阅读 · 0 评论 -
SpringBoot工程整合redis报错
SpringBoot整合redis实现数据存入redis的时候,报错了!!!错误:错误描述:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a su...原创 2019-11-21 10:32:57 · 601 阅读 · 0 评论 -
IDEA中template文件夹中整合thymeleaf后创建list页面使用分页插件报错
报错如下所示:解决办法:强制关闭themeleaf中的检测:原创 2019-11-19 16:37:29 · 410 阅读 · 0 评论 -
mybatis报错
1---Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.autonavi.dao.impl.mapper.pms.DemandStatisticMapper.demandResultMap原因是:利用反射机制创建类时,多次在mapper...原创 2019-11-18 15:31:39 · 138 阅读 · 0 评论 -
mysql数据库连接问题报错
错误提示:Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: The server time zone value '�й���ʱ��' is unreco...原创 2019-11-14 09:36:48 · 440 阅读 · 1 评论 -
SpringBoot搭建SpringSecurity配置登陆接口出错
1--安全登录页面如下所示2--输入账户密码 出现如下所示 跳转不到hello页面,查询得少了一个依赖文件3--在pom文件中配置如下所示:<thymeleaf.version>3.0.2.RELEASE</thymeleaf.version><thymeleaf-layout-dialect.version>2.0.5<...原创 2019-11-09 15:56:25 · 445 阅读 · 0 评论 -
eclipse乱码问题
1---整体乱码:先进Window——preferences——General——Workspace——Text file encoding修改为other选项,然后设置自己需要的编码格式。2---右击项目--》Resources-->Text file encoding----修改utf-83---jsp文件运行乱码修改文件中的头部:<%@ page langua...原创 2019-11-06 14:57:30 · 214 阅读 · 1 评论 -
Maven工程中war包 <packaging>war</packaging>报错解决方案
1---首先看自己的项目中有没有web.xml这个文件,src→main→webapp→WEB-INF 没有的话 ,创建一个相关的:右击项目名--->properties--->Project Facets--->将Dynamic Web Model工程签名的对勾先去掉,点击Apply,然后再将它打上勾,点击下面的Futher configuration ava...原创 2019-11-06 14:06:46 · 1123 阅读 · 0 评论 -
SpringBoot 创建时pom.xml文件中经的版本号报错问题解决
1---可能原因:1》导入的版本号过高,与之不匹配,降低版本号即可; 修改之后,问题解决: 2》将setting中的相应的对勾打上即可,会自动更新 ...原创 2019-11-02 09:33:54 · 2638 阅读 · 0 评论 -
MySQL连接后台证书警告问题
使用SpringBoot连接MySQl数据库,连接代码:spring.datasource.url = jdbc:mysql://localhost:3306/redis?useUnicode=true&characterEncoding=utf-8spring.datasource.username = rootspring.datasource.password = 123...原创 2019-11-01 11:06:37 · 471 阅读 · 0 评论 -
SpringBoot工程pom文件第一行出现红叉报错如何解决
1--原因是maven版本与导入的或者创建的版本号不匹配的问题:进入cmd命令行,使用 mav -v查看当前maven版本 将工程中的版本改为当前以下的版本即可; 在pom文件的properties属性中加入: <maven-jar-plugin.version>3.0.0</maven-jar-plugin.versio...原创 2019-10-31 16:38:56 · 1988 阅读 · 1 评论 -
pgSQL安装报错
1---关闭电脑自身的防火墙2---关闭自己安装的杀毒软件3---根据网上安装步骤一步步来4---卸载时使用geek.exe软件完全卸载干净,以免下一次安装出错!...原创 2019-10-02 10:28:11 · 480 阅读 · 0 评论