记自己框架中报错的几个问题:
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 {
}
网友评论