当前位置:网站首页>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 .
边栏推荐
- [audio and video] picture YUV data format
- 一款强大的端口扫描工具(nmap)
- Competition path design of beacon group
- efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
- Hotel room management system based on jsp+servlet+mysql
- Chapter 3 business function development (modifying clues, data echo and modifying data)
- Didi eta (estimate the travel time)
- 【5G NR】3GPP常用协议整理
- 滴滴 - dispatching
- uiautomator2 常用命令
猜你喜欢

File details

Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system

JS typewriter animation JS special effect plug-in autotyperjs
Cache design in Web services (error allowed, error not allowed)

CM4 development cross compilation tool chain production

DIY can decorate the mall system, you can also have!

A powerful port scanning tool (nmap)

Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID

In depth analysis of yolov7 network architecture

Brush the title "sword finger offer" day02
随机推荐
Programmers can't play at the age of 35. Is it a fact or a misunderstanding?
Recommend 7 open source projects of yyds this week
Introduction and principle explanation of 30 common sensor modules in IOT embedded devices
Redis best practices
Redis学习
[dark horse programmer] redis learning notes 004: master-slave replication + sentinel mode + cluster
Common commands of raspberry pie
batchnorm 和layernorm的区别
C 43. Get UDP available ports
Chapter 3 business function development (modifying clues, data echo and modifying data)
滴滴 - eta(Estimate the Travel Time)
IoT物联网嵌入式设备中30种常见传感器模块简介及原理讲解
Install MySQL 8.0 using docker
Can Flink's current capabilities support the synchronization of a table from source (MySQL) to sink (MySQL) to separate databases and tables
机器学习理论及案例分析(part2)--回归
"Unable to recognize" yarn "item as cmdlet, function, script file
第3章业务功能开发(修改线索,数据回显并修改数据)
475-82(230、43、78、79、213、198、1143)
efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
机器学习理论及案例分析(part1)--机器学习基础