02 2020 档案
摘要:java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the ser
阅读全文
摘要:下面是示例: 数据库中Username是张三 在数据库配置时没有配置编码 useUnicode=true&characterEncoding=UTF-8 导致期望与实际不同 配置useUnicode=true&characterEncoding=UTF-8的作用是:指定字符的编码、解码格式。 在my
阅读全文
摘要:IDEA在thymeleaf页面编写变量,如$会出现红色波浪下划线错误,提示Validates unresolved references and invalid expressions. 可以选择直接关掉了thymeleaf的检测。
阅读全文
摘要:在一种场景下需要刚刚插入数据的ID,如果数据少可以先看数据库,记下ID,但数据很多,假设一万个用户并发,每个用户都插入自己的ID,就很难记下来。 下面给定一个场景: User user = new User("张三","123456",new Date());//此时user没有id userDao
阅读全文