Error: field * doesn’t have a default value

https://www.cnblogs.com/sdfd101/p/5111851.html

There are two conventional methods

Solution 1: (enough)

In the database, set the default value for the error reporting field, integer: 0, string: null,

Find the corresponding table – design table – default selection box (set default value)

Solution 2:

MySQL installation directory – & gt; search open my.ini , find
sql mode = strict_ TRANS_ TABLES,NO_ AUTO_ CREATE_ USER,NO_ ENGINE_ SUBSTITUTION”

Amend to read

sql-mode=“NO_ AUTO_ CREATE_ USER,NO_ ENGINE_ SUBSTITUTION”

Then restart mysql

My own mistake is that the entity class doesn’t follow the hump rule. The appurl written by the entity class can be changed to appurl. I don’t pay attention to this very often

Read More: