springboot debug启动项目失败
1,org.springframework.data.repository.config.RepositoryConfigurationDelegate Line:127 - Bootstrapping Spring Data JPA repositories in DEFERRED mode.
2,等到10余分钟之后出现如下信息
Could not safely identify store assignment for repository candidate interface com.elitesland.system.repo.SysUserRoleRepo. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
3,如果你有耐力 等的够久 会出现 报错信息
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
解决方案 :
1,不要被日志迷惑
2,查看你的断点有没有设置到jar中 或者 编译好的文件中 我去掉误点的断点之后 项目运行正常