
bugs
日常bug总结
木子 旭
总结一下自己学到的东西,希望对爱学习的你们能提供一分帮助
展开
-
Idea报错Error:java: System Java Compiler was not found in classpath: java.lang.ClassNotFoundException:
1.问题Error:java: System Java Compiler was not found in classpath:java.lang.ClassNotFoundException: com.sun.tools.javac.api.JavacTool at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424)原创 2021-04-22 18:21:30 · 3515 阅读 · 2 评论 -
学习mybatis的时候useSSL=true报错The last packet sent successfully to the server was 0 milliseconds ago. The
1.直接先上错误<property name="url" value="jdbc:mysql://localhost:3306/mybatis_test?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=UTC"/>2.网上找了一堆网站,都没有结果,最后找到原因是因为看着教学视频跟着写了useSSL=true,把这个参数删掉或者改为useSSL=false就原创 2021-03-30 13:27:37 · 503 阅读 · 0 评论 -
IDEA——连接数据库报错Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ prope
1.当连接数据库的时候,出现错误Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' prope2.原因是因为数据库没有设置时区3.我们需要在cmd窗口中给他设置时区输入mysql -hlocalhost -uroot -p,然后输入密码进入数据库输入show variables like'%time_zone';检查是否设置时区。如果圈住的部分不是+08:00,是SYSTEM,那么原创 2021-03-30 10:43:32 · 303 阅读 · 0 评论 -
javascript(1)——html使用javascript,script标签必须成对出现
使用<script></script>成功弹出alert对话框 html代码js代码运行结果使用<script/>没有弹出alert对话框 htmlhtml代码javascript代码运行结果总结script标签必须成对出现,否则不会被读取。...原创 2021-01-17 15:31:50 · 365 阅读 · 0 评论 -
jsp更换background后,运行页面,背景没有改变,需要清除缓存
jsp更换background之后,点刷新,重启tomcat,重新打开浏览器,background均没有更换,清除缓存就好了谷歌浏览器点击右上角的三个点点击更多工具的清除浏览数据选项清除缓存和图片就好了原创 2020-12-30 22:03:29 · 1279 阅读 · 0 评论 -
IDEA,tomcat时候使用jdbc连接mysql,出现java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver,lib的位置有问题
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver在编译代码的时候出现这个问题我先检查了一下是否导入了包:再三确认之后,确实包是成功导入了的,并且通过ctrl点击代码,能够成功的进入到Driver包。这我就纳闷了,包也导入了,并且在代码中也能成功进入了,为什么会出现ClassNotFoundException这个错误呢,包的版本也没有错。为了排除其他错误,我又编写了一个test测试类public class test {原创 2020-12-15 21:33:27 · 1182 阅读 · 4 评论 -
react(3)——导入了正确的包,但是运行不出来,原因是因为导入包的顺序有问题
源代码:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>01_HelloWorld</title> <script src="../js/react-dom.development.js"></script> <script src="../js/react.development.原创 2020-12-14 09:39:41 · 574 阅读 · 0 评论