美文网首页
springcloud 报错问题汇总

springcloud 报错问题汇总

作者: 奋斗的韭菜汪 | 来源:发表于2020-11-11 14:54 被阅读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 {
}

相关文章

网友评论

      本文标题:springcloud 报错问题汇总

      本文链接:https://www.haomeiwen.com/subject/rwbebktx.html