Using a template file for error message
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
SpringMVC/target/classes/error.json.template
Normal file
14
SpringMVC/target/classes/error.json.template
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"code": %d,
|
||||
"error": %s,
|
||||
"description": %s
|
||||
}
|
||||
----------------
|
||||
<?xml version="1.0"?>
|
||||
<error>
|
||||
<code>%d</code>
|
||||
<description>%s</description>
|
||||
</error>
|
||||
----------------
|
||||
code: %d
|
||||
error: %s
|
||||
1
SpringMVC/target/classes/error.template
Normal file
1
SpringMVC/target/classes/error.template
Normal file
@@ -0,0 +1 @@
|
||||
{"errors": "%s"}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
SpringMVC/target/web/WEB-INF/classes/error.json.template
Normal file
14
SpringMVC/target/web/WEB-INF/classes/error.json.template
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"code": %d,
|
||||
"error": %s,
|
||||
"description": %s
|
||||
}
|
||||
----------------
|
||||
<?xml version="1.0"?>
|
||||
<error>
|
||||
<code>%d</code>
|
||||
<description>%s</description>
|
||||
</error>
|
||||
----------------
|
||||
code: %d
|
||||
error: %s
|
||||
1
SpringMVC/target/web/WEB-INF/classes/error.template
Normal file
1
SpringMVC/target/web/WEB-INF/classes/error.template
Normal file
@@ -0,0 +1 @@
|
||||
{"errors": "%s"}
|
||||
Reference in New Issue
Block a user