bug:1、sqlSessionFactory 2、feign.slf4j.Slf4jLogger 3、missing ServletWebServerFactory bean. 4、long精度丢失

Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required

问题简述

问题解决

https://www.dazhuanlan.com/jellybool/topics/1104831

错误的主要原因为在 Dao 的实现类中继承了SqlSessionDaoSupport来实现 SqlSessionFactory 的自动注入,然后通过 this.getSqlSession() 拿到 SqlSession。
但是这种写法在 mybatis-spring 整合包的版本为 1.2.0 之前是没有问题的,但后续的版本取消了自动注入,当引入的依赖包版本大于 1.2.0 后就会报错。

java.lang.IllegalStateException: No supported DataSource type found
https://www.136.la/tech/show-42092.html

Caused by: java.lang.ClassNotFoundException: feign.slf4j.Slf4jLogger

问题简述

niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647

问题解决

依赖只需要这个

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

在这里插入图片描述

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

问题简述

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

问题解决

缺少web依赖

long精度丢失

问题简述

long精度丢失

问题解决

使用fastjson的提供的注解,@JSONField(serializeUsing = ToStringSerializer.class)防止后端精度丢失
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值