
解决错误
心之所向...
这个作者很懒,什么都没留下…
展开
-
yarn : 无法加载文件 D:\Software\dev\nodejs\node_global\yarn.ps1,因为此系统上禁止运行脚本。
yarn : 无法加载文件 D:\Software\dev\nodejs\node_global\yarn.ps1,因为此系统上禁止运行脚本。原创 2023-03-02 10:49:39 · 517 阅读 · 1 评论 -
Error querying database. Cause: org.postgresql.util.PSQLException: 错误: 不支持 LIMIT #,# 语法
错误语句: select patient_id,pa_name from business.base_patient order by patient_id limit #{startIndex} , #{pageSize}错误信息Error querying database. Cause: org.postgresql.util.PSQLException: 错误: 不支持 LIMIT #,# 语法建议:LIMIT和OFFSET子句要分隔开这是因为与mysql原创 2021-04-25 11:31:49 · 4113 阅读 · 0 评论 -
解决:2013 - Lost connection to MySQL server at ‘reading initial communication pac
方案:在my.ini或者my.cnf中的 [mysqld] 后面,添加 skip-name-resolve然后重启mysql服务原创 2020-03-07 20:24:04 · 6729 阅读 · 0 评论 -
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known serve
这个问题检查了很久,最后发现代码都是对的。最后快放弃的时候,突然想到我的Eureka注册中心项目没有启动。哈哈哈!!!!难受!!原创 2020-02-11 21:20:57 · 301 阅读 · 0 评论 -
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in ‘read
在yml配置文件中写入一下内容:mq: config: exchange: direct queue: info: info routing-key: info.routing.key启动服务,报一下错误。Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in 'reader'原因就是在info后面不能原创 2022-02-15 17:45:41 · 4512 阅读 · 0 评论 -
通过mybatis插入数据,数据库乱码问题
通过mybatis框架插入数据,出现以上这种乱码情况。解决方式:在url后面加上?useUnicode=true&characterEncoding=utf-8即可。jdbc.driver=com.mysql.cj.jdbc.Driverjdbc.url=jdbc:mysql:///oa?useUnicode=true&characterEncoding=utf-8jdbc.username=rootjdbc.password=123456学...原创 2021-12-28 17:38:37 · 1228 阅读 · 0 评论 -
You must configure either the server or JDBC driver (via the serverTimezone configuration property)
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 specifc time zone value .原创 2021-12-27 17:52:39 · 690 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
原因是接口和xml映射文件没有绑定起来。我这里出错是因为配置文件有问题。即mybatis配置缩进了。spring: datasource: #配置datasource username: root password: 123456 driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql:///blog type: com.alibaba.druid.pool.DruidDataSource...原创 2021-12-27 17:44:19 · 525 阅读 · 0 评论 -
解决springboot中properties配置文件乱码问题
我在application.properties配置文件中配置user.username=张三想去拿取这个值,其结果就是乱码的。User{username='å¼ ä¸'}解决方式就是:idea默认properties配置文件中是utf-8的,所以就需要去设置编码为一样的。按照图片,设置以上内容就ok了。关注公众号,可以免费获取毕业设计项目、各种免费软件、资料,笔记哦。...原创 2021-12-15 12:11:22 · 687 阅读 · 1 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following: If you want an embedded database (...原创 2021-12-15 11:23:46 · 848 阅读 · 0 评论 -
成功解决:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ib
原因可能是xml文件中,sql语句条件的值写错了。原创 2020-01-05 21:24:32 · 66112 阅读 · 1 评论