background: 1. There is a notification table in the database You can see the
These three fields are underlined. 2. The entity class corresponding to this table is public class Notification { private Long id; private Long notifier; private Long receiver; private Long outerId; private Integer type; private Long gmtCreate; private Integer status; private String notifierName; private String outerTitle; } Use camelCase when writing actual Java code Note whether camel case mapping is enabled in application.properties
3. There is an insert statement in Mapper
Conclusion: When doing placeholder, the content in #{} should be gmtCreate Be careful when writing, writing it as gmt_create may result in an error The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Implementation of Docker deployment of web projects
>>: Vue uses el-table to dynamically merge columns and rows
Someone asked me before whether it is possible to...
Installation environment: CentOS7 64-bit MINI ver...
Introducing the Geo module of Nginx The geo direc...
1. Check sql_mode select @@sql_mode The queried v...
Introduction to structural pseudo-class selectors...
How to install Linux CentOS 7.7 system in Vmware,...
Table of contents 1. Introduction to priority que...
In order to make the page display consistent betwe...
The requirements are as follows Export the table ...
Note: Other machines (IP) cannot connect to the M...
Detailed Analysis of Iframe Usage <iframe frame...
Introduction: The configuration of Docker running...
Inserting images into HTML requires HTML tags to ...
Table of contents Mixins implementation Hook func...
For a long time, website development was hampered...