質問編集履歴
2
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,8 +71,8 @@
|
|
71
71
|
Failed to convert property value of type [java.lang.String] to required type [java.lang.Integer] for property 'reg_emp_num'; nested exception is java.lang.NumberFormatException: For input string: "あ"
|
72
72
|
```
|
73
73
|
|
74
|
-
補足:プロパティファイルにorg.hibernate.validator.constraints.NotEmpty.message=
|
74
|
+
補足:プロパティファイルにorg.hibernate.validator.constraints.NotEmpty.message={任意のメッセージ}を記入すれば、@NotEmptyをセットしたフィールドに対して設定したメッセージがあたりますが、
|
75
|
-
typeMismatchについては日本語化がうまくいきませ
|
75
|
+
typeMismatchについては日本語化がうまくいきません。
|
76
76
|
|
77
77
|
SpringBoot 1.4.1
|
78
78
|
Jdk 1.8.0_121
|
1
補足情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,6 +71,9 @@
|
|
71
71
|
Failed to convert property value of type [java.lang.String] to required type [java.lang.Integer] for property 'reg_emp_num'; nested exception is java.lang.NumberFormatException: For input string: "あ"
|
72
72
|
```
|
73
73
|
|
74
|
+
補足:プロパティファイルにorg.hibernate.validator.constraints.NotEmpty.message=入を記入すれば、@NotEmptyをセットしたフィールドに対して設定したメッセージがあたりますが、
|
75
|
+
typeMismatchについては日本語化がうまくいきませせん。
|
76
|
+
|
74
77
|
SpringBoot 1.4.1
|
75
78
|
Jdk 1.8.0_121
|
76
79
|
MySQL 5.6.27
|