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
version: centos==7.2 jdk==1.8 confluence==6.15.4 ...
DOCTYPE DECLARATION At the top of every page you w...
Data Types and Operations Data Table 1.1 MySQL ty...
0. Background Hardware: Xiaomi Notebook Air 13/In...
Preface This article mainly summarizes some of th...
Table of contents 1. Introduction 2. Simple epoll...
Defining an array in Bash There are two ways to c...
Table of contents 1. Home Page Production 1. Prod...
VirtualBox is a free and open source virtualizati...
The installation tutorial of mysql 8.0.20 winx64....
HTML Design Pattern Study Notes This week I mainl...
1. Get is used to obtain data from the server, wh...
This article describes the examples of creating a...
echarts word cloud is an extension of echarts htt...
Share a real-time clock effect implemented with n...