最近遇到的问题
在SpringBoot下,没有@NotNull注解
版本问题,2.3.1取消了@NotNUll等一系列数据校验的注解,回退到2.2.6即可
java.lang.AbstractMethodError: com.mysql.jdbc.Connection.isValid(I)Z
mysql版本问题 依赖换成5.1.47以上版本
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [favicon.ico], template might not exist or might not be accessible by any of the configured Template Resolvers
执行html页面时控制台报错,但对实际操作无影响。
<link rel="shortcut icon" href="#">
加入到html页面中,问题解决。
java.sql.SQLException: The server time zone value is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
mysql 8.0版本新特性,添加jdbc:mysql://localhost:3306/test?serverTimezone=UTC
即可。