当前位置:网站首页>Idea reads configuration files such as validationmessages.properties Chinese garbled
Idea reads configuration files such as validationmessages.properties Chinese garbled
2022-07-25 08:14:00 【lzhfdxhxm】
Catalog
environmental information :
idea2021.1.1( notes : If it's another version idea, This problem may also occur )
SpringBoot 2.1.15.RELEASE
Problem description :
When doing the parameter verification function , The verifier and its error description are customized . The calibrator is working normally , But in the returned error description , Chinese garbled .

In the console , It's also garbled : Prove that it is not the problem of front-end display , But what the backend sends is garbled .

Solution :
Solutions :
The error description is in accordance with the specification ValidationMessages.properties、ValidationMessages_zh_CN.properties Internally configured :
javax.validation.constraints.ListValue.message = The specified value must be submitted Garbled code generally involves Chinese coding ,idea Coding settings and garbled code problems , This blog post refers to :
resolvent :
Refer to the blog above , Have a look at idea Configuration of , Find out :
Transparent native-to-ascii conversion The front box is not checked !

Check the box , restart , It's still garbled !
Reference blog , Re input Chinese in the file , restart , The returned error description is displayed normally .

summary
idea It involves garbled code 、 When coding problems , You need to set the file coding format , The original Chinese in the document may also need to be re entered .
It's not just about ValidationMessages.properties、ValidationMessages_zh_CN.properties These two profiles , Other configuration files are the same .
边栏推荐
- One of C language multithreading programming
- Some easy-to-use plug-ins and settings installed in vscode
- C # introductory series (30) -- exception handling
- DIY can decorate the mall system, you can also have!
- RTOS series (13): assembly LDR instruction, LDR pseudo instruction, [rn] register indirect reference detailed analysis
- Competition path design of beacon group
- Learn when playing No 5 | human high quality examination, right here →
- Chapter 3 business function development (realize the real-time response of the select all button)
- 7.24模拟赛总结
- JS pop up picture Lightbox light box plug-in spotlight.js
猜你喜欢

Brush the title "sword finger offer" day01

File details

Introduction and principle explanation of 30 common sensor modules in IOT embedded devices

ArcGIS Pro scripting tool (10) -- generate.Stylx style symbols from layers

Google AI can't understand the comments of netizens, and the wrong meaning will be as high as 30%. Netizens: you don't understand my stem

一次简单的SQL注入靶场练习

JS pop up picture Lightbox light box plug-in spotlight.js

eval与assert一句话木马分析

Brush the title "sword finger offer" day02

TCGA simple download tool V16 installation error
随机推荐
A review of nature: gender differences in anxiety and depression - circuits and mechanisms
Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
2022-07-19 Daily: too many icml2022 papers to read? "One sentence comments on 1234 paper highlights" helps you quickly lock
7.24模拟赛总结
Raspberry pie 3b ffmpeg RTMP streaming
孙子兵法随感
[ffmpeg] MP4 to YUV
机器学习理论及案例分析(part1)--机器学习基础
Changes were made to tables that cannot be recreated or the prevent saving changes that require the table to be recreated option was enabled
TCGA simple download tool V16 installation error
[dark horse programmer] redis learning notes 001: introduction to redis + five basic data types
If there is complex select nesting in the SQL of the flick CDC, when it encounters the binlog of delete, it will
Brush the title "sword finger offer" day01
CAS operation
DIY can decorate the mall system, you can also have!
App power consumption test
Raspberrypico analytic PWM
enq: HW – contention等待引起的故障分析
Raspberry pie 4B ffmpeg RTMP streaming
ArcGIS Pro脚本工具(10)——从图层生成.stylx样式符号