bug
小赵说事
这个作者很懒,什么都没留下…
展开
-
MethodNotSupportedException: Request method ‘POST‘
MethodNotSupportedException: Request method ‘POST’:问题描述:这种错误很明显是请求错误,我这里用的是RESTful API 中的PUT请求@RequestMapping(value = "/update/{id}",method = RequestMethod.PUT) public String updateAccount(@PathVariable("id") int id,原创 2021-12-31 16:15:58 · 261 阅读 · 0 评论 -
Could not write JSON: could not initialize proxy [com.example.demo.bean.Account#2] - no Session;
Could not write JSON: could not initialize proxy [com.example.demo.bean.Account#2] - no Session;问题描述:Could not write JSON: could not initialize proxy[com.example.demo.bean.Account#2] - no Session; nested exception iscom.fasterxml.jackson.databind.Jso原创 2021-12-31 10:28:36 · 737 阅读 · 0 评论 -
java.lang.IllegalStateException: Mapped class was not specified
java.lang.IllegalStateException: Mapped class was not specified:原因分析:这里显示是mapper配置有问题,仔细检查发现,是BeanPropertyRowMapper的构造有问题@Override public List<Account> findAccountList() { List<Account> list = jdbcTemplate.query("select * from a原创 2021-12-30 16:15:50 · 687 阅读 · 0 评论 -
Could not resolve placeholder ‘my.name‘ in value “${my.name}“
Could not resolve placeholder ‘my.name’ in value “${my.name}”问题描述:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘helloController’: Injection of autowired dependencies failed; nested exception is java.lang.Illega原创 2021-12-30 10:13:31 · 618 阅读 · 0 评论 -
This application has no explicit mapping for /error, so you are seeing this as a fallback.
This application has no explicit mapping for /error, so you are seeing this as a fallback.:提示:这里简述项目相关背景:例如:项目场景:示例:通过蓝牙芯片(HC-05)与手机 APP 通信,每隔 5s 传输一批传感器数据(不是很大)问题描述:提示:这里描述项目中遇到的问题:例如:数据传输过程中数据不时出现丢失的情况,偶尔会丢失一部分数据APP 中接收数据代码:@Override publ原创 2021-12-30 09:48:15 · 525 阅读 · 0 评论 -
kettle一闪而过的问题:
kettle一闪而过的问题:问题描述:安装后kettle后点击kettle的启动文件spoon.bat,黑框一闪而过。原因分析:这种情况一般有两个原因:jdk版本过低,最好安装1.8及以上版本内存不足:kettle的使用是非常耗内存的,如果你电脑本身的内存不是太大的话(我说得大内存基本上都在两位数之上)解决方案:1.如果是你刚安装好一闪而过:可能是本身电脑内存小的建议修改spoon.bat里面的默认内存参数配置,修改为如下参数:if “%PENTAHO_DI_JAVA原创 2021-08-13 12:14:57 · 1910 阅读 · 0 评论 -
springboot启动报错:Protocol handler start failed
springboot启动报错:Protocol handler start failed问题描述:原因分析: 很大一部分原因因为 端口冲突,很多时候是因为Idea 的bug 或者当你启动一个项目之后没有终止任务,直接关闭了Idea就会导致这个问题。解决方案:打开任务管理器结束Java进程即可解决。...原创 2021-07-19 17:07:37 · 433 阅读 · 0 评论 -
MyBatis-generator遇到的坑
MyBatis-generator遇到的坑错误一:Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project Demo1: Execution default-cli of goal org.mybatis.generator问题原因:mysql-connector-java的版本过高,可以给它换个5.x的版本解决方法:原创 2021-07-20 15:19:23 · 835 阅读 · 0 评论 -
redis连接出错:
redis连接出错:问题描述:Unsatisfied dependency expressed through field ‘redissonClient’;Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘lockFactory’: Unsatisfied dependency expressed through field ‘redi原创 2021-07-29 11:28:22 · 2263 阅读 · 0 评论 -
Druid连接池连接MySQL报错:
Druid连接池连接MySQL报错:问题描述:Druid连接池链接mysql错误提示:create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/bank,errorCode原因分析:这种有以下几种情况:1.你的数据库连接配置错误2.MySQL没有启动,服务没打开解决方案:1.数据库连接配置错误 datasource: type: com.alibaba.druid.pool.DruidD原创 2021-07-29 11:58:08 · 1764 阅读 · 0 评论 -
Spring boot:启动时提示boot.devtools.restart.SilentExitExceptionHandler$SilentExitExce异常
Spring boot:启动时提示boot.devtools.restart.SilentExitExceptionHandler$SilentExitExce异常问题描述:IDEA中,启动Spring boot项目,控制台提示org.springframework.boot.devtools.restart.SilentExitExceptionHandler$SilentExitException的异常。org.springframework.boot.devtools.restart.Sil转载 2021-08-03 15:58:52 · 5810 阅读 · 1 评论 -
Error creating bean with name ‘callBackFactory’: Unsatisfied dependency expressed through field ‘luc
Error creating bean with name ‘callBackFactory’: Unsatisfied dependency expressed through field ‘luckinCoffeeConfig’;问题描述:Error creating bean with name ‘callBackFactory’: Unsatisfied dependency expressed through field ‘luckinCoffeeConfig’;解决方案:这种错误一般都原创 2021-08-03 16:06:17 · 72 阅读 · 0 评论 -
org.springframework.transaction.TransactionSystemException:Could not commit JPA transaction;
org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction:这个问题很奇葩,也很坑,就想着记录下。解决方案:遇到这个问题各种debug,最后发现后台代码没有问题,前台代码也没有问题,最原创 2021-08-05 16:53:27 · 1511 阅读 · 0 评论 -
Connect to 127.0.0.1:2701 [/127.0.0.1] failed: Connection refused: connect
项目场景:org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://127.0.0.1:2701/user/user/auth": Connect to 127.0.0.1:2701 [/127.0.0.1] failed: Connection refused: connect; nested exception is org.apache.http.conn.HttpHost原创 2021-08-04 10:00:10 · 15940 阅读 · 0 评论