Last night Project upgrade, development environment, test environment all OK, a line, the page blank. Page console print 404. Check the following error in the background log report:,
Illegal mix of collations (utf8_unicode_ci,implicit) and (utf8_general_ci,implicit) for operation ' = '
Database: MySQL
Visible 404 is not necessarily the URL of the problem oh.
Solution to the problem:
Find the query statement related to the request, I did it with Spring JdbcTemplate, find the table that corresponds to SQL, execute the following statement in MySQL:
Show CREATE TABLE Tabel_name
There is something like this in the result set:
Charset=utf8 Collate=utf8_unicode_ci
Query data discovery is a collate problem, make the following changes: Execute SQL
ALTER TABLE table_name CONVERT to CHARACTER SET UTF8 COLLATE utf8_general_ci;
All the tables involved will be performed after the above operation, then verify that everything OK.
Solve the problem smoothly.
404 error is not necessarily the page URL problem oh.
The AJAX request path is correct, but the page prompts 404 error.