springcloud 报错问题汇总

2020-11-11  本文已影响0人  奋斗的韭菜汪

记自己框架中报错的几个问题:
1、服务启动失败:没有报错信息

2020-11-11 14:39:38.284  INFO 30033 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
2020-11-11 14:39:39.355  INFO 30033 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed
2020-11-11 14:39:39.356  INFO 30033 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]

可能原因:
1、启动类扫描错误

@EnableFeignClients(basePackages = {"com.ichint.tdj.account.**", "com.ichint.tdj.log.**"})

2、Mappper.xml映射错误

<resultMap id="BaseResultMap" type="com.ichint.tdj.user.entity.UserInfo">

3、Manage未加@Service

@Service
public class SysUserManageImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserManage {
}
上一篇 下一篇

猜你喜欢

热点阅读