java报错汇总
wuhui2100
这个作者很懒,什么都没留下…
展开
-
java连接数据库奇葩现象repeat字段报错:You have an error in your SQL syntax; check the manual that corresponds to y
在做javaEE项目开发时,从前端获取数据进行数据库更新时,报错:数据库语句错误You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat,调了一下午怎么试都报repeat字段错误最后一气之下把repeat全部换成repeats 加一个s,在运行时奇迹班的可以运行了,此时我想说rep原创 2020-08-05 20:52:02 · 334 阅读 · 0 评论 -
在使用springboot创建项目使用注解@NotNull 提示The import javax.validation cannot be resolved
随着spring4的发展意味着注解时代的到来,在开放项目中我都会使用注解来缓解controller层的压力,往往直接在实体类层定义注解在使用@NotNull注解提示The import javax.validation cannot be resolved时,是因为我们在pom.xml文件中忘记写入相应的依赖:javax.validationvalidation-api此时即可使用@NotNull注解:下面是一些相应的注解:@Null 被注释的元素必须为null@NotNull 被原创 2020-07-14 11:55:03 · 4672 阅读 · 0 评论 -
SpringBoot连接数据库时报:The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than
当我们在使用springboot启动项目时报:Could not obtain connection to query metadata : 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' configuratio原创 2020-07-14 10:31:33 · 5971 阅读 · 0 评论