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
How long has it been since I updated my column? H...
Table of contents 1. Integrate Ant Design Vue 2. ...
1. Clear floating method 1 Set the height of the ...
1 The select tag must be closed <select><...
If you often use FTP server in your study or work...
Table of contents What are immutable values? Why ...
Install ssh tool 1. Open the terminal and type th...
Table of contents Preface 1. Set the prototype on...
Table of contents 1. Pull the image 1.1 Pull the ...
Q: I don’t know what is the difference between xml...
If you want to install some 64-bit applications (...
1. Introduction: Because my friend wanted to lear...
Table of contents Basic usage of Promise: 1. Crea...
React Native can develop iOS and Android native a...
The TextBox with the ReadOnly attribute will be di...