文章最前: 我是Octopus,这个名字来源于我的中文名--章鱼;我热爱编程、热爱算法、热爱开源。所有源码在我的个人github ;这博客是记录我学习的点点滴滴,如果您对 Python、Java、AI、算法有兴趣,可以关注我的动态,一起学习,共同进步。
相关文章:
- DuplicateKeyException异常处理:java向数据库插入数据异
- springboot的UnsatisfiedDependencyException异常问题
- org.springframework.dao.DataIntegrityViolationException
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'current_state'
- java中出现这种错误: "error": "Internal Server Error",
- The Tomcat connector configured to listen on port 8888 failed to start
- java.nio.charset.MalformedInputException错误解决
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.geekplus.dao
数据库连接失败:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactoryPlusDW' defined in URL [file:/D:/hephaestus/hephaestus-wms/api-impl/target/classes/config/hephaestus/spring/hephaestus-datasource-dw.xml]: Invocation of init method failed; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail ! Cause:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Communications link failure是数据库连接错误,更改数据库配置,看有没有该数据库就行。