问题集合(编程报错)
问题集合(编程报错)
执笔更换高版本数据库
报错内容
1 | java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property. |
解决方案
1 | url=jdbc:mysql://localhost:3306/bookdb?rewriteBatchedStatements=true |
Thymeleaf中each遍历
报错内容
1 | org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "" (template: "employeeList" - line 27, col 20) |
解决方案
1 | <td> |
ClassNotFoundException:ContextLoadListener
报错内容
1 | java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener |
解决方案
1 | 在IDEA中点击FILE>Project Structure>Atrifatcs>在右侧Output Laayout右击项目名 选择Put into Output Root > 重启Tomcat |
springboot测试
报错内容
1 | java.lang.IllegalStateException: Unable to find a , you need to use or with your test |
解决方案
1 | 检查test目录名是否一致 |
评论
匿名评论隐私政策
✅ 你无需删除空行,直接评论以获取最佳展示效果