1.mybatis
解决:setting—》
2.mybatis注解报错
加入依赖:
<dependency> <groupId>org.apache.ibatis</groupId> <artifactId>ibatis-core</artifactId> <version>3.0</version> </dependency>
3.MySQL8.0时区问题
?serverTimezone=UTC
4.1 字节的 UTF-8 序列的字节 1 无效。
将xml文件中的编码UTF-8改为UTF8
5.@Test报错
- 1.class类命名不能是Test
- 2.junit4以上版本才可以使用
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency>
6.java.lang.SecurityException: Prohibited package name: java.utils
java不能作为包名,改一下就可以了
7.java: 程序包javax.servlet.http不存在
8.创建springboot项目连接超时
把URL换成阿里云就可以了
https://start.aliyun.com
9.sqlserver删除数据库失败
提示:数据库正在使用
解决办法:
use master go alter database 数据库名 set single_user with rollback immediate;
drop database 数据库名 ; go




